WordPress.org

Make WordPress Core

Changeset 18451


Ignore:
Timestamp:
07/21/11 19:41:18 (3 years ago)
Author:
ryan
Message:

Show admin bar in single site backend by default. Props dimadin. fixes #17899

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r18333 r18451  
    443443    $pref = get_user_option( "show_admin_bar_{$context}", $user ); 
    444444    if ( false === $pref ) 
    445         return 'admin' != $context || is_multisite(); 
     445        return true; 
    446446 
    447447    return 'true' === $pref; 
  • trunk/wp-includes/user.php

    r18178 r18451  
    14641464 
    14651465    if ( empty($show_admin_bar_admin) ) 
    1466         $show_admin_bar_admin = is_multisite() ? 'true' : 'false'; 
     1466        $show_admin_bar_admin = 'true'; 
    14671467 
    14681468    $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)); 
Note: See TracChangeset for help on using the changeset viewer.