Changeset 34819
- Timestamp:
- 10/04/2015 08:50:48 PM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-network.php
r34585 r34819 130 130 } 131 131 132 $this->_set_site_name(); 132 133 $this->_set_cookie_domain(); 134 } 135 136 /** 137 * Set the site name assigned to the network if one has not been populated. 138 * 139 * @since 4.4.0 140 * @access private 141 */ 142 private function _set_site_name() { 143 if ( ! empty( $this->site_name ) ) { 144 return; 145 } 146 147 $default = ucfirst( $this->domain ); 148 $this->site_name = get_network_option( 'site_name', $default, $this->id ); 133 149 } 134 150 -
trunk/src/wp-includes/ms-settings.php
r34778 r34819 222 222 } 223 223 224 if ( empty( $current_site->site_name ) ) {225 $current_site->site_name = get_network_option( 'site_name' );226 if ( ! $current_site->site_name ) {227 $current_site->site_name = ucfirst( $current_site->domain );228 }229 }230 231 224 // Define upload directory constants 232 225 ms_upload_constants();
Note: See TracChangeset
for help on using the changeset viewer.