From 8fa658695878adf32dcbc9400461a80f05f9f76f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 8 Feb 2020 05:31:07 +0000 Subject: [PATCH] Tests: Add a basic test for `wp()` function. Props pbearne, donmhico. Fixes #48844. Built from https://develop.svn.wordpress.org/trunk@47212 git-svn-id: http://core.svn.wordpress.org/trunk@47012 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index ef4d23debb..1a53c12eda 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1270,6 +1270,7 @@ function wp_remote_fopen( $uri ) { */ function wp( $query_vars = '' ) { global $wp, $wp_query, $wp_the_query; + $wp->main( $query_vars ); if ( ! isset( $wp_the_query ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 18ffab1250..19335e69e5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-47211'; +$wp_version = '5.4-alpha-47212'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.