Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix checking for editor
  • Loading branch information
Alex Lende committed Feb 17, 2022
commit 0048119bb6dbeeb5bcd5ba120f8293dd0016e7b6
3 changes: 1 addition & 2 deletions src/wp-includes/script-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -2351,10 +2351,9 @@ function wp_global_styles_render_svg_filters() {
* When calling via the in_admin_header action, we only want to render the
* SVGs on block editor pages.
*/
global $pagenow;
if (
is_admin() &&
get_current_screen()->is_block_editor()
! get_current_screen()->is_block_editor()
) {
return;
}
Expand Down