WordPress.org

Make WordPress Core

Ticket #25373: 25373.4.patch

File 25373.4.patch, 794 bytes (added by nofearinc, 8 years ago)

rename to "the Toolbar" + multiline comment

  • wp-includes/class-wp-admin-bar.php

     
    4646                add_action( 'admin_head', 'wp_admin_bar_header' );
    4747
    4848                if ( current_theme_supports( 'admin-bar' ) ) {
    49                         $admin_bar_args = get_theme_support( 'admin-bar' ); // add_theme_support( 'admin-bar', array( 'callback' => '__return_false') );
     49                        /**
     50                         * To remove the default padding styles from WordPress for the Toolbar, use the following code:
     51                         * add_theme_support( 'admin-bar', array( 'callback' => '__return_false') );
     52                         */
     53                        $admin_bar_args = get_theme_support( 'admin-bar' );
    5054                        $header_callback = $admin_bar_args[0]['callback'];
    5155                }
    5256