Make WordPress Core


Ignore:
Timestamp:
03/25/2013 09:29:58 AM (11 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-blogs.php

    r23752 r23794  
    696696    elseif ( 'deleted' == $pref )
    697697        ( $value == 1 ) ? do_action( 'make_delete_blog', $blog_id ) : do_action( 'make_undelete_blog', $blog_id );
     698    elseif ( 'public' == $pref )
     699        do_action( 'update_blog_public', $blog_id, $value ); // Moved here from update_blog_public().
    698700
    699701    return $value;
Note: See TracChangeset for help on using the changeset viewer.