Make WordPress Core


Ignore:
Timestamp:
12/07/2010 02:28:40 PM (13 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-users.php

    r16586 r16764  
    2929
    3030$details = get_blog_details( $id );
    31 if ( $details->site_id != $wpdb->siteid )
     31if ( !can_edit_site( $details->site_id ) )
    3232    wp_die( __( 'You do not have permission to access this page.' ) );
    3333
Note: See TracChangeset for help on using the changeset viewer.