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.



git-svn-id: https://develop.svn.wordpress.org/trunk@26008 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2013-11-05 00:23:38 +00:00
parent 0923b7b93a
commit 268667e170
2 changed files with 9 additions and 0 deletions

View File

@@ -1,4 +1,6 @@
<?php
global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version;
/**
* The WordPress version string
*