Changeset 40478 for trunk/src/wp-includes/class-wp-site.php
- Timestamp:
- 04/19/2017 06:51:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-site.php
r40344 r40478 241 241 case 'post_count': 242 242 case 'home': 243 default: // Custom properties added by 'site_details' filter. 243 244 if ( ! did_action( 'ms_loaded' ) ) { 244 245 return null; 245 246 } 247 246 248 $details = $this->get_details(); 247 return $details->$key; 249 if ( isset( $details->$key ) ) { 250 return $details->$key; 251 } 248 252 } 249 253 … … 276 280 } 277 281 return true; 282 default: // Custom properties added by 'site_details' filter. 283 if ( ! did_action( 'ms_loaded' ) ) { 284 return false; 285 } 286 287 $details = $this->get_details(); 288 if ( isset( $details->$key ) ) { 289 return true; 290 } 278 291 } 279 292
Note: See TracChangeset
for help on using the changeset viewer.