diff --git a/wp-includes/version.php b/wp-includes/version.php index 5eb16a606b..b39d3c537e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31092'; +$wp_version = '4.2-alpha-31093'; /** * 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 0f886f88f1..e7b74a6d45 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -1600,6 +1600,9 @@ class wpdb { // If we're writing to the database, make sure the query will write safely. if ( $this->check_current_query && ! $this->check_ascii( $query ) ) { $stripped_query = $this->strip_invalid_text_from_query( $query ); + // strip_invalid_text_from_query() can perform queries, so we need + // to flush again, just to make sure everything is clear. + $this->flush(); if ( $stripped_query !== $query ) { $this->insert_id = 0; return false;