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 dd0ac8f commit cc67669Copy full SHA for cc67669
src/DB_Command.php
@@ -431,8 +431,10 @@ public function query( $args, $assoc_args ) {
431
$assoc_args['execute'] = $args[0];
432
}
433
434
- // Ensure that the SQL mode is compatible with WPDB.
435
- $assoc_args['execute'] = $this->get_sql_mode_query( $assoc_args ) . $assoc_args['execute'];
+ if ( isset( $assoc_args['execute'] ) ) {
+ // Ensure that the SQL mode is compatible with WPDB.
436
+ $assoc_args['execute'] = $this->get_sql_mode_query( $assoc_args ) . $assoc_args['execute'];
437
+ }
438
439
self::run( $command, $assoc_args );
440
0 commit comments