Make WordPress Core

Changeset 15385


Ignore:
Timestamp:
07/12/2010 03:01:25 PM (14 years ago)
Author:
ryan
Message:

Block editing of sites in a network other than the current one. Props wpmuguru. see #14185 for 3.1

File:
1 edited

Legend:

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

    r15379 r15385  
    108108        $options = $wpdb->get_results( "SELECT * FROM {$blog_prefix}options WHERE option_name NOT LIKE '\_%' AND option_name NOT LIKE '%user_roles'" );
    109109        $details = get_blog_details( $id );
     110        if ( $details->site_id != $wpdb->siteid )
     111            wp_die( __( 'You do not have permission to access this page.' ) );
     112
    110113        $editblog_roles = get_blog_option( $id, "{$blog_prefix}user_roles" );
    111114        $is_main_site = is_main_site( $id );
Note: See TracChangeset for help on using the changeset viewer.