After [29200], switch back to using `static` vars instead of adding 2 `global`s, as per Sergey.
Fixes #28697. Built from https://develop.svn.wordpress.org/trunk@29250 git-svn-id: http://core.svn.wordpress.org/trunk@29034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
021b07a161
commit
baf7f5604d
|
@ -114,12 +114,10 @@ function ms_file_constants() {
|
|||
* we will have translations loaded and can trigger warnings easily.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @global boolean $subdomain_error
|
||||
* @global boolean $subdomain_error_warn
|
||||
*/
|
||||
function ms_subdomain_constants() {
|
||||
global $subdomain_error, $subdomain_error_warn;
|
||||
static $subdomain_error = null;
|
||||
static $subdomain_error_warn = null;
|
||||
|
||||
if ( false === $subdomain_error ) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue