WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/07/2010 02:28:40 PM (9 years ago)
Author:
westi
Message:

Introduce can_edit_site to replace inline checks on whether or not the site_id is for the current Network. See #15716.

File:
1 edited

Legend:

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

    r16627 r16764  
    2323
    2424$details = get_blog_details( $id );
    25 if ( $details->site_id != $wpdb->siteid )
     25if ( !can_edit_site( $details->site_id ) )
    2626    wp_die( __( 'You do not have permission to access this page.' ) );
    2727
Note: See TracChangeset for help on using the changeset viewer.