Ticket #17734: admin-bar.2.diff
File admin-bar.2.diff, 1.0 KB (added by , 14 years ago) |
---|
-
wp-includes/admin-bar.php
94 94 } 95 95 96 96 /** 97 * Add the "Dashboard"/"Vi ewSite" menu.97 * Add the "Dashboard"/"Visit Site" menu. 98 98 * 99 99 * @since 3.2.0 100 100 */ … … 387 387 } 388 388 389 389 /** 390 * Set the display status of the admin bar 390 * Set the display status of the admin bar. 391 391 * 392 392 * This can be called immediately upon plugin load. It does not need to be called from a function hooked to the init action. 393 393 * … … 437 437 * 438 438 * @param string $context Context of this preference check, either 'admin' or 'front' 439 439 * @param int $user Optional. ID of the user to check, defaults to 0 for current user 440 * @return bool Whether the admin bar should be showing for this user 440 * @return bool Whether the admin bar should be showing for this user. 441 441 */ 442 442 function _get_admin_bar_pref( $context, $user = 0 ) { 443 443 $pref = get_user_option( "show_admin_bar_{$context}", $user );