mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
Use get_blog_option() isntead of raw SQL in site-users. See #14756
git-svn-id: http://svn.automattic.com/wordpress/trunk@16935 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cd582d3a24
commit
e44e212641
@ -43,6 +43,7 @@ if ( ! empty($wp_roles->use_db) ) {
|
||||
// Roles are stored in memory, not the DB.
|
||||
$editblog_roles = $wp_roles->roles;
|
||||
}
|
||||
$default_role = get_blog_option( $id, 'default_role' );
|
||||
|
||||
$action = $wp_list_table->current_action();
|
||||
|
||||
@ -237,7 +238,6 @@ endif; ?>
|
||||
<th scope="row"><?php _e( 'Role'); ?></th>
|
||||
<td><select name="new_role" id="new_role_0">
|
||||
<?php
|
||||
$default_role = $wpdb->get_var( "SELECT `option_value` FROM {$blog_prefix}options WHERE option_name = 'default_role'" );
|
||||
reset( $editblog_roles );
|
||||
foreach ( $editblog_roles as $role => $role_assoc ){
|
||||
$name = translate_user_role( $role_assoc['name'] );
|
||||
@ -286,7 +286,7 @@ endif; ?>
|
||||
<?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?>
|
||||
<?php submit_button( __('Add New User'), 'primary', 'add-user' ); ?>
|
||||
</form>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php
|
||||
require('../admin-footer.php');
|
Loading…
Reference in New Issue
Block a user