Make WordPress Core


Ignore:
Timestamp:
06/28/2014 04:06:12 AM (11 years ago)
Author:
wonderboymusic
Message:

In multisite, on the updated_option action, if the option name is one of: 'blogname', 'siteurl', 'post_count' - refresh the blog details cache for the current blog id.

Adds unit test.

Props kovshenin.
Fixes #26410.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-default-filters.php

    r28835 r28881  
    7171remove_filter( 'option_home',    '_config_wp_home'    );
    7272
     73// Some options changes should trigger blog details refresh.
     74add_action( 'updated_option', '_wp_refresh_blog_details_on_updated_option' );
     75
    7376// If the network upgrade hasn't run yet, assume ms-files.php rewriting is used.
    7477add_filter( 'default_site_option_ms_files_rewriting', '__return_true' );
Note: See TracChangeset for help on using the changeset viewer.