WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/10/2015 03:52:21 AM (6 years ago)
Author:
jeremyfelt
Message:

Multisite: Remove $domain and $path globals in ms_not_installed()

Further reduces the reliance on these unnecessary globals.

Fixes #27264.

File:
1 edited

Legend:

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

    r32611 r33989  
    395395 * @access private
    396396 * @since 3.0.0
    397  *
    398  * @global wpdb   $wpdb
    399  * @global string $domain
    400  * @global string $path
    401  */
    402 function ms_not_installed() {
    403     global $wpdb, $domain, $path;
     397 * @since 4.3.0 The `$domain` and `$path` parameters were added.
     398 *
     399 * @global wpdb $wpdb
     400 *
     401 * @param string $domain The requested domain for the error to reference.
     402 * @param string $path   The requested path for the error to reference.
     403 */
     404function ms_not_installed( $domain, $path ) {
     405    global $wpdb;
    404406
    405407    if ( ! is_admin() ) {
Note: See TracChangeset for help on using the changeset viewer.