mirror of
git://develop.git.wordpress.org/
synced 2025-01-29 18:48:18 +01:00
Improve inline comment for removing default padding styles for the Toolbar.
Props nofearinc. Fixes #25373. git-svn-id: https://develop.svn.wordpress.org/trunk@25563 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a2cd165b61
commit
24d1818527
@ -46,7 +46,11 @@ class WP_Admin_Bar {
|
||||
add_action( 'admin_head', 'wp_admin_bar_header' );
|
||||
|
||||
if ( current_theme_supports( 'admin-bar' ) ) {
|
||||
$admin_bar_args = get_theme_support( 'admin-bar' ); // add_theme_support( 'admin-bar', array( 'callback' => '__return_false') );
|
||||
/**
|
||||
* To remove the default padding styles from WordPress for the Toolbar, use the following code:
|
||||
* add_theme_support( 'admin-bar', array( 'callback' => '__return_false' ) );
|
||||
*/
|
||||
$admin_bar_args = get_theme_support( 'admin-bar' );
|
||||
$header_callback = $admin_bar_args[0]['callback'];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user