Skip to content

Commit 5c29b11

Browse files
committed
Merge branch 'main' into develop
2 parents 59473c8 + 19aa748 commit 5c29b11

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

classes/admin/class-editor.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ public function __construct() {
2727
public function enqueue_editor_script() {
2828
// Bail early when we're on the site-editor.php page.
2929
$request = \filter_input( INPUT_SERVER, 'REQUEST_URI' );
30-
if ( false !== \strpos( (string) $request, '/site-editor.php' ) ) {
30+
if ( ! $request && isset( $_SERVER['REQUEST_URI'] ) ) {
31+
$request = \sanitize_text_field( \wp_unslash( $_SERVER['REQUEST_URI'] ) );
32+
}
33+
if ( $request && str_contains( $request, 'site-editor.php' ) ) {
3134
return;
3235
}
3336

0 commit comments

Comments
 (0)