Make WordPress Core

Ticket #48831: 48831.diff

File 48831.diff, 1.5 KB (added by donmhico, 5 years ago)
  • src/wp-includes/class-wp-admin-bar.php

    diff --git src/wp-includes/class-wp-admin-bar.php src/wp-includes/class-wp-admin-bar.php
    index 69021f527b..69236ff267 100644
    class WP_Admin_Bar { 
    5555
    5656                add_action( 'admin_head', 'wp_admin_bar_header' );
    5757
     58                add_action( 'login_head', 'wp_admin_bar_header' );
     59
    5860                if ( current_theme_supports( 'admin-bar' ) ) {
    5961                        /**
    6062                         * To remove the default padding styles from WordPress for the Toolbar, use the following code:
    class WP_Admin_Bar { 
    6971                }
    7072
    7173                add_action( 'wp_head', $header_callback );
     74                add_action( 'login_head', $header_callback, 1000 );
    7275
    7376                wp_enqueue_script( 'admin-bar' );
    7477                wp_enqueue_style( 'admin-bar' );
  • src/wp-includes/default-filters.php

    diff --git src/wp-includes/default-filters.php src/wp-includes/default-filters.php
    index 26cdfeba20..1ff9979f95 100644
    add_action( 'template_redirect', '_wp_admin_bar_init', 0 ); 
    535535add_action( 'admin_init', '_wp_admin_bar_init' );
    536536add_action( 'before_signup_header', '_wp_admin_bar_init' );
    537537add_action( 'activate_header', '_wp_admin_bar_init' );
     538add_action( 'login_head', '_wp_admin_bar_init' );
    538539add_action( 'wp_footer', 'wp_admin_bar_render', 1000 );
    539540add_action( 'in_admin_header', 'wp_admin_bar_render', 0 );
     541add_action( 'login_footer', 'wp_admin_bar_render', 0 );
    540542
    541543// Former admin filters that can also be hooked on the front end
    542544add_action( 'media_buttons', 'media_buttons' );