diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php index 0f38c6479b..49b7017ad0 100644 --- a/wp-includes/class-wp-query.php +++ b/wp-includes/class-wp-query.php @@ -1620,9 +1620,9 @@ class WP_Query { break; case 'post_name__in': if ( ! empty( $this->query_vars['post_name__in'] ) ) { - $post_name__in = array_map( 'sanitize_title_for_query', $this->query_vars['post_name__in'] ); + $post_name__in = array_map( 'sanitize_title_for_query', $this->query_vars['post_name__in'] ); $post_name__in_string = "'" . implode( "','", $post_name__in ) . "'"; - $orderby_clause = "FIELD( {$wpdb->posts}.post_name," . $post_name__in_string . ' )'; + $orderby_clause = "FIELD( {$wpdb->posts}.post_name," . $post_name__in_string . ' )'; } break; default: diff --git a/wp-includes/version.php b/wp-includes/version.php index 70d931cfa3..bca27ec26d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44455'; +$wp_version = '5.1-alpha-44456'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.