When WordPress is loaded in a function (e.g. unit tests) the variables initialized at the top level aren't globals, but we expect them to be. Explicitly make the version variables global.
Props nbachiyski. Fixes #23685. Built from https://develop.svn.wordpress.org/trunk@26008 git-svn-id: http://core.svn.wordpress.org/trunk@25939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<?php
|
||||
global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version;
|
||||
|
||||
/**
|
||||
* The WordPress version string
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user