Make WordPress Core


Ignore:
Timestamp:
03/25/2013 09:29:58 AM (13 years ago)
Author:
ryan
Message:

Fire the update_blog_public action from update_blog_status() instead of update_blog_public(). Pass blog ID and value to the action.

Add code to noindex() to sync the 'public' value in the site options table with the blog_public value in the options table.

fixes #23155

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-functions.php

    r23664 r23794  
    17351735 */
    17361736function update_blog_public( $old_value, $value ) {
    1737     global $wpdb;
    1738     do_action('update_blog_public');
    1739     update_blog_status( $wpdb->blogid, 'public', (int) $value );
     1737    update_blog_status( get_current_blog_id(), 'public', (int) $value );
    17401738}
    17411739add_action('update_option_blog_public', 'update_blog_public', 10, 2);
Note: See TracChangeset for help on using the changeset viewer.