WordPress.org

Make WordPress Core

Changeset 14020


Ignore:
Timestamp:
04/06/10 18:17:21 (4 years ago)
Author:
nacin
Message:

Remove old bulk actions MS sites code.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-edit.php

    r14018 r14020  
    431431    break; 
    432432 
    433     case 'matureblog': 
    434         check_admin_referer( 'matureblog' ); 
    435         if ( ! current_user_can( 'manage_sites' ) ) 
    436             wp_die( __( 'You do not have permission to access this page.' ) ); 
    437  
    438         update_blog_status( $id, 'mature', '1' ); 
    439         do_action( 'mature_blog', $id ); 
    440         wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'mature' ), wp_get_referer() ) ); 
    441         exit(); 
    442     break; 
    443  
    444     case 'unmatureblog': 
    445         check_admin_referer( 'unmatureblog' ); 
    446         if ( ! current_user_can( 'manage_sites' ) ) 
    447             wp_die( __( 'You do not have permission to access this page.' ) ); 
    448  
    449         update_blog_status( $id, 'mature', '0' ); 
    450         do_action( 'unmature_blog', $id ); 
    451         wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'unmature' ), wp_get_referer() ) ); 
    452         exit(); 
    453     break; 
    454  
    455433    // Themes 
    456434    case 'updatethemes': 
  • trunk/wp-admin/ms-sites.php

    r13998 r14020  
    6262            case 'spam': 
    6363                _e( 'Site marked as spam.' ); 
    64             break; 
    65             case 'unmature': 
    66                 _e( 'Site marked as not mature.' ); 
    67             break; 
    68             case 'mature': 
    69                 _e( 'Site marked as mature.' ); 
    7064            break; 
    7165            default: 
Note: See TracChangeset for help on using the changeset viewer.