Make WordPress Core


Ignore:
Timestamp:
07/19/2014 11:13:19 PM (9 years ago)
Author:
wonderboymusic
Message:

After [29200], switch back to using static vars instead of adding 2 globals, as per Sergey.

Fixes #28697.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-default-constants.php

    r29200 r29250  
    115115 *
    116116 * @since 3.0.0
    117  *
    118  * @global boolean $subdomain_error
    119  * @global boolean $subdomain_error_warn
    120117 */
    121118function ms_subdomain_constants() {
    122     global $subdomain_error, $subdomain_error_warn;
     119    static $subdomain_error = null;
     120    static $subdomain_error_warn = null;
    123121
    124122    if ( false === $subdomain_error ) {
Note: See TracChangeset for help on using the changeset viewer.