WordPress.org

Make WordPress Core

Changeset 16986


Ignore:
Timestamp:
12/16/10 07:41:38 (5 years ago)
Author:
nacin
Message:

Minor cleanups.

Location:
trunk/wp-admin/network
Files:
4 edited

Legend:

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

    r16847 r16986  
    175175            wp_die( __( 'You do not have permission to access this page.' ) ); 
    176176 
    177         if ( $id != '0' && $id != $current_site->blog_id && current_user_can ( 'delete_site', $id ) ) { 
     177        if ( $id != '0' && $id != $current_site->blog_id && current_user_can( 'delete_site', $id ) ) { 
    178178            wpmu_delete_blog( $id, true ); 
    179179            wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'delete' ), wp_get_referer() ) ); 
  • trunk/wp-admin/network/site-info.php

    r16984 r16986  
    1414    wp_die( __( 'Multisite support is not enabled.' ) ); 
    1515 
    16 if ( ! current_user_can('manage_sites') ) 
    17     wp_die(__('You do not have sufficient permissions to edit this site.')); 
     16if ( ! current_user_can( 'manage_sites' ) ) 
     17    wp_die( __( 'You do not have sufficient permissions to edit this site.' ) ); 
    1818 
    1919add_contextual_help($current_screen, 
  • trunk/wp-admin/network/site-new.php

    r16981 r16986  
    1414    wp_die( __( 'Multisite support is not enabled.' ) ); 
    1515 
    16 if ( ! current_user_can('manage_sites') ) 
    17     wp_die(__('You do not have sufficient permissions to add sites to this network.')); 
     16if ( ! current_user_can( 'manage_sites' ) ) 
     17    wp_die( __( 'You do not have sufficient permissions to add sites to this network.' ) ); 
    1818 
    1919add_contextual_help($current_screen, 
     
    3131        wp_die( __( 'You do not have permission to access this page.' ) ); 
    3232 
    33     if ( is_array( $_POST['blog'] ) == false ) 
     33    if ( ! is_array( $_POST['blog'] ) ) 
    3434        wp_die( __( 'Can’t create an empty site.' ) ); 
    3535    $blog = $_POST['blog']; 
  • trunk/wp-admin/network/site-settings.php

    r16985 r16986  
    1414    wp_die( __( 'Multisite support is not enabled.' ) ); 
    1515 
    16 if ( ! current_user_can('manage_sites') ) 
    17     wp_die(__('You do not have sufficient permissions to edit this site.')); 
     16if ( ! current_user_can( 'manage_sites' ) ) 
     17    wp_die( __( 'You do not have sufficient permissions to edit this site.' ) ); 
    1818 
    1919add_contextual_help($current_screen, 
Note: See TracChangeset for help on using the changeset viewer.