Show admin bar in single site backend by default. Props dimadin. fixes #17899
git-svn-id: https://develop.svn.wordpress.org/trunk@18451 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
80f6c2833c
commit
0689b1b8a0
@ -442,7 +442,7 @@ function is_admin_bar_showing() {
|
||||
function _get_admin_bar_pref( $context, $user = 0 ) {
|
||||
$pref = get_user_option( "show_admin_bar_{$context}", $user );
|
||||
if ( false === $pref )
|
||||
return 'admin' != $context || is_multisite();
|
||||
return true;
|
||||
|
||||
return 'true' === $pref;
|
||||
}
|
||||
|
@ -1463,7 +1463,7 @@ function wp_insert_user($userdata) {
|
||||
$show_admin_bar_front = 'true';
|
||||
|
||||
if ( empty($show_admin_bar_admin) )
|
||||
$show_admin_bar_admin = is_multisite() ? 'true' : 'false';
|
||||
$show_admin_bar_admin = 'true';
|
||||
|
||||
$user_nicename_check = $wpdb->get_var( $wpdb->prepare("SELECT ID FROM $wpdb->users WHERE user_nicename = %s AND user_login != %s LIMIT 1" , $user_nicename, $user_login));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user