Make WordPress Core

Ticket #48831: 48831.2.diff

File 48831.2.diff, 2.2 KB (added by donmhico, 4 years ago)

With CSS fix.

  • 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/css/admin-bar.css

    diff --git src/wp-includes/css/admin-bar.css src/wp-includes/css/admin-bar.css
    index d0f4457e7a..4b6b4f2fbb 100644
    html:lang(he-il) .rtl #wpadminbar * { 
    620620        height: 32px;
    621621        padding: 0 2px;
    622622        z-index: 1;
     623        background: transparent;
     624        border: 0;
    623625}
    624626
    625627#wpadminbar #adminbarsearch:before {
    html:lang(he-il) .rtl #wpadminbar * { 
    659661        transition-duration: 400ms;
    660662        transition-property: width, background;
    661663        transition-timing-function: ease;
     664        min-height: 0;
    662665}
    663666
    664667#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus {
  • 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' );