Make WordPress Core

Ticket #20305: delete-undelete-actions.diff

File delete-undelete-actions.diff, 650 bytes (added by wonderboymusic, 12 years ago)
  • wp-includes/ms-blogs.php

     
    300300                        do_action( "make_ham_blog", $blog_id );
    301301        }
    302302
     303        // If deleted status changed, issue actions.
     304        if ( $details[ 'deleted' ] != $current_details[ 'deleted' ] ) {
     305                if ( $details[ 'deleted' ] == 1 )
     306                        do_action( "make_delete_blog", $blog_id );
     307                else
     308                        do_action( "make_undelete_blog", $blog_id );
     309        }       
     310       
    303311        if ( isset($details[ 'public' ]) ) {
    304312                switch_to_blog( $blog_id );
    305313                update_option( 'blog_public', $details[ 'public' ] );