Tests: Add a basic test for wp() function.

Props pbearne, donmhico.
Fixes #48844.

git-svn-id: https://develop.svn.wordpress.org/trunk@47212 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-02-08 05:29:54 +00:00
parent 11eb80e59e
commit 2aecc8f3e6
4 changed files with 23 additions and 3 deletions

View File

@@ -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 ) ) {