WordPress.org

Make WordPress Core

Changeset 15386


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

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

File:
1 edited

Legend:

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

    r15380 r15386  
    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.