WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r15135 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 );
     
    198201                                <tr class="form-field">
    199202                                    <th scope="row"><?php echo ucwords( str_replace( "_", " ", $option->option_name ) ) ?></th>
    200                                     <td><textarea class="<?php echo $class; ?>" rows="5" cols="40" name="option[<?php echo esc_attr( $option->option_name ) ?>]" id="<?php echo esc_attr( $option->option_name ) ?>"<?php disabled( $disabled ) ?>><?php wp_htmledit_pre( $option->option_value ) ?></textarea></td>
     203                                    <td><textarea class="<?php echo $class; ?>" rows="5" cols="40" name="option[<?php echo esc_attr( $option->option_name ) ?>]" id="<?php echo esc_attr( $option->option_name ) ?>"<?php disabled( $disabled ) ?>><?php echo wp_htmledit_pre( $option->option_value ) ?></textarea></td>
    201204                                </tr>
    202205                            <?php
Note: See TracChangeset for help on using the changeset viewer.