Ticket #17899: admin_bar_backend.patch
File admin_bar_backend.patch, 1014 bytes (added by , 13 years ago) |
---|
-
wp-includes/admin-bar.php
442 442 function _get_admin_bar_pref( $context, $user = 0 ) { 443 443 $pref = get_user_option( "show_admin_bar_{$context}", $user ); 444 444 if ( false === $pref ) 445 return 'admin' != $context || is_multisite();445 return true; 446 446 447 447 return 'true' === $pref; 448 448 } -
wp-includes/user.php
1463 1463 $show_admin_bar_front = 'true'; 1464 1464 1465 1465 if ( empty($show_admin_bar_admin) ) 1466 $show_admin_bar_admin = is_multisite() ? 'true' : 'false';1466 $show_admin_bar_admin = 'true'; 1467 1467 1468 1468 $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)); 1469 1469