mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-02 00:00:15 +00:00
MS: Populate site_name property in a new WP_Network.
This allows us to reduce some extra handling in `ms-settings.php`. Requires [34777]. Props johnjamesjacoby for the initial patch. See #31985. git-svn-id: https://develop.svn.wordpress.org/trunk@34819 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -221,12 +221,5 @@ if ( ! $current_site instanceof WP_Network ) {
|
||||
$current_site = new WP_Network( $current_site );
|
||||
}
|
||||
|
||||
if ( empty( $current_site->site_name ) ) {
|
||||
$current_site->site_name = get_network_option( 'site_name' );
|
||||
if ( ! $current_site->site_name ) {
|
||||
$current_site->site_name = ucfirst( $current_site->domain );
|
||||
}
|
||||
}
|
||||
|
||||
// Define upload directory constants
|
||||
ms_upload_constants();
|
||||
|
||||
Reference in New Issue
Block a user