mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Multisite: Remove $domain and $path globals in ms_not_installed()
Further reduces the reliance on these unnecessary globals. Fixes #27264. git-svn-id: https://develop.svn.wordpress.org/trunk@33989 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -394,13 +394,15 @@ function get_site_by_path( $domain, $path, $segments = null ) {
|
||||
*
|
||||
* @access private
|
||||
* @since 3.0.0
|
||||
* @since 4.3.0 The `$domain` and `$path` parameters were added.
|
||||
*
|
||||
* @global wpdb $wpdb
|
||||
* @global string $domain
|
||||
* @global string $path
|
||||
* @global wpdb $wpdb
|
||||
*
|
||||
* @param string $domain The requested domain for the error to reference.
|
||||
* @param string $path The requested path for the error to reference.
|
||||
*/
|
||||
function ms_not_installed() {
|
||||
global $wpdb, $domain, $path;
|
||||
function ms_not_installed( $domain, $path ) {
|
||||
global $wpdb;
|
||||
|
||||
if ( ! is_admin() ) {
|
||||
dead_db();
|
||||
|
||||
Reference in New Issue
Block a user