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-themes.php

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