diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index bfd1f3746a..43c1daaef5 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -1212,7 +1212,7 @@ class wpdb { } foreach ( $args as $arg ) { - if ( ! is_scalar( $arg ) ) { + if ( ! is_scalar( $arg ) && ! is_null( $arg ) ) { _doing_it_wrong( 'wpdb::prepare', sprintf( 'Unsupported value type (%s).', gettype( $arg ) ), '4.1.19' ); } }