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 53e8c3c commit edf69c8Copy full SHA for edf69c8
src/DB_Command.php
@@ -1836,16 +1836,12 @@ protected function get_current_sql_modes( $assoc_args ) {
1836
1837
// Make sure the provided arguments don't interfere with the expected
1838
// output here.
1839
- $args = $assoc_args;
1840
- unset(
1841
- $args['column-names'],
1842
- $args['result-format'],
1843
- $args['json'],
1844
- $args['html'],
1845
- $args['table'],
1846
- $args['tabbed'],
1847
- $args['vertical']
1848
- );
+ $args = [];
+ foreach ( [] as $arg ) {
+ if ( isset( $assoc_args[ $arg ] ) ) {
+ $args[ $arg ] = $assoc_args[ $arg ];
+ }
1849
1850
if ( null === $modes ) {
1851
$modes = [];
0 commit comments