Skip to content

Commit 130abb5

Browse files
author
David Ryan
committed
prevent ajax return
1 parent 25d04a3 commit 130abb5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/admin/class-toolkit-dashboard-page.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ function __construct( $installed_dir, $installed_url ) {
3838
* Needed on every dashboard page for Admin Menu
3939
*/
4040
function global_admin_css() {
41+
if ( wp_doing_ajax() ) {
42+
return;
43+
}
4144
ob_start(); ?>
4245
<style type="text/css">
4346
#toplevel_page_wp-phx-dev-kit ul li:nth-of-type(2),

0 commit comments

Comments
 (0)