Make WordPress Core


Ignore:
Timestamp:
09/10/2015 03:52:21 AM (9 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-settings.php

    r28934 r33989  
    7979                wp_cache_add( 'current_network', $current_site, 'site-options' );
    8080            } elseif ( 0 === $wpdb->num_rows ) {
    81                 ms_not_installed();
     81                ms_not_installed( $domain, $path );
    8282            }
    8383        }
     
    8787
    8888        if ( empty( $current_site ) ) {
    89             ms_not_installed();
     89            ms_not_installed( $domain, $path );
    9090        } elseif ( $path === $current_site->path ) {
    9191            $current_blog = get_site_by_path( $domain, $path );
     
    112112    // No network has been found, bail.
    113113    if ( empty( $current_site ) ) {
    114         ms_not_installed();
     114        ms_not_installed( $domain, $path );
    115115    }
    116116
     
    157157             * As we couldn't find a site, we're simply not installed.
    158158             */
    159             ms_not_installed();
     159            ms_not_installed( $domain, $path );
    160160        }
    161161
Note: See TracChangeset for help on using the changeset viewer.