WordPress.org

Make WordPress Core

Ticket #15328: always-filter-admin-bar-showing.15328.diff

File always-filter-admin-bar-showing.15328.diff, 590 bytes (added by filosofo, 3 years ago)
  • wp-includes/admin-bar.php

     
    331331         
    332332        /* For all these types of request we never want an admin bar period */ 
    333333        if ( defined('XMLRPC_REQUEST') || defined('APP_REQUEST') || defined('DOING_AJAX') || defined('IFRAME_REQUEST') ) 
    334                 return false; 
     334                $show_admin_bar = false; 
    335335         
    336336        if ( ! isset( $show_admin_bar ) || null === $show_admin_bar ) { 
    337337                if ( ! is_user_logged_in() || ( is_admin() && ! is_multisite() ) ) {