We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 222fc3d commit ed1a640Copy full SHA for ed1a640
src/DB_Command.php
@@ -1688,12 +1688,19 @@ private static function get_mysql_args( $assoc_args ) {
1688
*/
1689
protected function get_defaults_flag_string( &$assoc_args ) {
1690
1691
- if ( true === Utils\get_flag_value( $assoc_args, 'defaults' ) ) {
+ $flag_string = ' --no-defaults';
1692
+
1693
+ if ( array_key_exists( 'defaults', $assoc_args ) ) {
1694
1695
+ if ( true === Utils\get_flag_value( $assoc_args, 'defaults' ) ) {
1696
+ $flag_string = '';
1697
+ }
1698
1699
unset( $assoc_args['defaults'] );
- return '';
1700
1701
}
1702
- return ' --no-defaults';
1703
+ return $flag_string;
1704
1705
1706
0 commit comments