Make WordPress Core


Ignore:
Timestamp:
09/02/2014 07:29:47 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Simplify the code for calling refresh_blog_details() whenever 'blogname', 'siteurl', or 'post_count' option is updated.

props pento, nacin.
fixes #26410.

File:
1 edited

Legend:

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

    r28881 r29668  
    7272
    7373// Some options changes should trigger blog details refresh.
    74 add_action( 'updated_option', '_wp_refresh_blog_details_on_updated_option' );
     74add_action( 'update_option_blogname',   'refresh_blog_details', 10, 0 );
     75add_action( 'update_option_siteurl',    'refresh_blog_details', 10, 0 );
     76add_action( 'update_option_post_count', 'refresh_blog_details', 10, 0 );
    7577
    7678// If the network upgrade hasn't run yet, assume ms-files.php rewriting is used.
Note: See TracChangeset for help on using the changeset viewer.