Improve inline comment for removing default padding styles for the Toolbar.
Props nofearinc. Fixes #25373. Built from https://develop.svn.wordpress.org/trunk@25563 git-svn-id: http://core.svn.wordpress.org/trunk@25481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8546983da6
commit
fda48c2462
|
@ -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…
Reference in New Issue