Ticket #26410: 26410.2.diff
File 26410.2.diff, 1.5 KB (added by , 10 years ago) |
---|
-
src/wp-includes/ms-blogs.php
267 267 * Refresh blog details when an option is updated. 268 268 * 269 269 * @access private 270 * @param string $option_name271 270 */ 272 function _wp_refresh_blog_details_on_updated_option( $option_name ) { 273 $options = array( 'blogname', 'siteurl', 'post_count' ); 274 if ( in_array( $option_name, $options ) ) { 275 refresh_blog_details( get_current_blog_id() ); 276 } 271 function _wp_refresh_blog_details_on_updated_option() { 272 refresh_blog_details( get_current_blog_id() ); 277 273 } 278 274 279 275 /** -
src/wp-includes/ms-default-filters.php
71 71 remove_filter( 'option_home', '_config_wp_home' ); 72 72 73 73 // Some options changes should trigger blog details refresh. 74 add_action( 'updated_option', '_wp_refresh_blog_details_on_updated_option' ); 74 add_action( 'update_option_blogname', '_wp_refresh_blog_details_on_updated_option' ); 75 add_action( 'update_option_siteurl', '_wp_refresh_blog_details_on_updated_option' ); 76 add_action( 'update_option_post_count', '_wp_refresh_blog_details_on_updated_option' ); 75 77 76 78 // If the network upgrade hasn't run yet, assume ms-files.php rewriting is used. 77 79 add_filter( 'default_site_option_ms_files_rewriting', '__return_true' );