Make WordPress Core

Ticket #47053: 47053.diff

File 47053.diff, 700 bytes (added by audrasjb, 5 years ago)

Workaround: including the admin bar on wp_body_open

  • src/wp-includes/default-filters.php

    diff --git a/src/wp-includes/default-filters.php b/src/wp-includes/default-filters.php
    index fc0f4408f7..f3392d3482 100644
    a b add_action( 'template_redirect', '_wp_admin_bar_init', 0 ); 
    533533add_action( 'admin_init', '_wp_admin_bar_init' );
    534534add_action( 'before_signup_header', '_wp_admin_bar_init' );
    535535add_action( 'activate_header', '_wp_admin_bar_init' );
    536 add_action( 'wp_footer', 'wp_admin_bar_render', 1000 );
     536add_action( 'wp_body_open', 'wp_admin_bar_render', 1000 );
    537537add_action( 'in_admin_header', 'wp_admin_bar_render', 0 );
    538538
    539539// Former admin filters that can also be hooked on the front end