CARVIEW |
Select Language
HTTP/2 200
server: nginx
date: Fri, 10 Oct 2025 06:59:24 GMT
content-type: text/html;charset=utf-8
vary: Accept-Encoding
etag: W/"anonymous/Sun, 26 Jun 2011 14:28:42 GMT/False"
cache-control: must-revalidate
expires: Fri, 01 Jan 1999 00:00:00 GMT
alt-svc: h3=":443"; ma=86400
strict-transport-security: max-age=31536000
x-frame-options: SAMEORIGIN
content-encoding: gzip
admin_bar_backend.patch on Ticket #17899 – Attachment
– WordPress Trac
Ticket #17899: admin_bar_backend.patch
File admin_bar_backend.patch, 1014 bytes (added by dimadin, 14 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