diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index cbb2fd32fb..412d42f571 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -1136,7 +1136,7 @@ function is_admin_bar_showing() { global $show_admin_bar, $pagenow; // For all these types of requests, we never want an admin bar. - if ( defined( 'XMLRPC_REQUEST' ) || defined( 'DOING_AJAX' ) || defined( 'IFRAME_REQUEST' ) ) { + if ( defined( 'XMLRPC_REQUEST' ) || defined( 'DOING_AJAX' ) || defined( 'IFRAME_REQUEST' ) || wp_is_json_request() ) { return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index ec16d1f816..02ce327bbf 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-beta1-44607'; +$wp_version = '5.1-beta1-44608'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.