- if ( 'spam' == $pref )
- ( $value == 1 ) ? do_action( 'make_spam_blog', $blog_id ) : do_action( 'make_ham_blog', $blog_id );
- elseif ( 'mature' == $pref )
- ( $value == 1 ) ? do_action( 'mature_blog', $blog_id ) : do_action( 'unmature_blog', $blog_id );
- elseif ( 'archived' == $pref )
- ( $value == 1 ) ? do_action( 'archive_blog', $blog_id ) : do_action( 'unarchive_blog', $blog_id );
- elseif ( 'deleted' == $pref )
- ( $value == 1 ) ? do_action( 'make_delete_blog', $blog_id ) : do_action( 'make_undelete_blog', $blog_id );
+ if ( 'spam' == $pref ) {
+ if ( $value == 1 ) {
+ /** This filter is documented in wp-includes/ms-blogs.php */
+ do_action( 'make_spam_blog', $blog_id );
+ } else {
+ /** This filter is documented in wp-includes/ms-blogs.php */
+ do_action( 'make_ham_blog', $blog_id );
+ }
+ } elseif ( 'mature' == $pref ) {
+ if ( $value == 1 ) {
+ /** This filter is documented in wp-includes/ms-blogs.php */
+ do_action( 'mature_blog', $blog_id );
+ } else {
+ /** This filter is documented in wp-includes/ms-blogs.php */
+ do_action( 'unmature_blog', $blog_id );
+ }
+ } elseif ( 'archived' == $pref ) {
+ if ( $value == 1 ) {
+ /** This filter is documented in wp-includes/ms-blogs.php */
+ do_action( 'archive_blog', $blog_id );
+ } else {
+ /** This filter is documented in wp-includes/ms-blogs.php */
+ do_action( 'unarchive_blog', $blog_id );
+ }
+ } elseif ( 'deleted' == $pref ) {
+ if ( $value == 1 ) {
+ /** This filter is documented in wp-includes/ms-blogs.php */
+ do_action( 'make_delete_blog', $blog_id );
+ } else {
+ /** This filter is documented in wp-includes/ms-blogs.php */
+ do_action( 'make_undelete_blog', $blog_id );
+ }
+ } elseif ( 'public' == $pref ) {
+ /**
+ * Fires after the current blog's 'public' setting is updated.
+ *
+ * @since MU
+ *
+ * @param int $blog_id Blog ID.
+ * @param string $value The value of blog status.
+ */
+ do_action( 'update_blog_public', $blog_id, $value ); // Moved here from update_blog_public().
+ }