diff --git a/wp-includes/version.php b/wp-includes/version.php index f717b9c8c6..ff7dfb6f77 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-49071'; +$wp_version = '5.6-alpha-49072'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index ebcadb6ef0..80c117c1a0 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -1915,6 +1915,11 @@ class wpdb { */ $query = apply_filters( 'query', $query ); + if ( ! $query ) { + $this->insert_id = 0; + return false; + } + $this->flush(); // Log how the function was called.