Make WordPress Core

Changeset 16935


Ignore:
Timestamp:
12/15/2010 09:05:10 AM (14 years ago)
Author:
PeteMall
Message:

Use get_blog_option() isntead of raw SQL in site-users. See #14756

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network/site-users.php

    r16930 r16935  
    4444    $editblog_roles = $wp_roles->roles;
    4545}
     46$default_role = get_blog_option( $id, 'default_role' );
    4647
    4748$action = $wp_list_table->current_action();
     
    238239            <td><select name="new_role" id="new_role_0">
    239240            <?php
    240             $default_role = $wpdb->get_var( "SELECT `option_value` FROM {$blog_prefix}options WHERE option_name = 'default_role'" );
    241241            reset( $editblog_roles );
    242242            foreach ( $editblog_roles as $role => $role_assoc ){
     
    287287    <?php submit_button( __('Add New User'), 'primary', 'add-user' ); ?>
    288288</form>
     289<?php endif; ?>
    289290</div>
    290 <?php endif; ?>
    291291<?php
    292292require('../admin-footer.php');
Note: See TracChangeset for help on using the changeset viewer.