Make WordPress Core

Changeset 41875


Ignore:
Timestamp:
10/16/2017 05:05:25 PM (7 years ago)
Author:
jeremyfelt
Message:

Multisite: Explicitly globalize global variables in ms-settings.php.

Explicitly globalize and document $domain, $path, $site_id, and $public in `ms-settings.php.

Props csloisel, danielbachhuber.
Fixes #39419.

File:
1 edited

Legend:

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

    r38470 r41875  
    1919 * @global WP_Network $current_site The current network.
    2020 * @global object     $current_blog The current site.
     21 * @global string     $domain       Deprecated. The domain of the site found on load.
     22 *                                  Use `get_site()->domain` instead.
     23 * @global string     $path         Deprecated. The path of the site found on load.
     24 *                                  Use `get_site()->path` instead.
     25 * @global int        $site_id      Deprecated. The ID of the network found on load.
     26 *                                  Use `get_current_network_id()` instead.
     27 * @global bool       $public       Deprecated. Whether the site found on load is public.
     28 *                                  Use `get_site()->public` instead.
     29 *
    2130 * @since 3.0.0
    2231 */
    23 global $current_site, $current_blog;
     32global $current_site, $current_blog, $domain, $path, $site_id, $public;
    2433
    2534/** WP_Network class */
Note: See TracChangeset for help on using the changeset viewer.