We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e25dc6d commit 19aa748Copy full SHA for 19aa748
1 file changed
classes/admin/class-editor.php
@@ -27,7 +27,10 @@ public function __construct() {
27
public function enqueue_editor_script() {
28
// Bail early when we're on the site-editor.php page.
29
$request = \filter_input( INPUT_SERVER, 'REQUEST_URI' );
30
- if ( false !== \strpos( (string) $request, '/site-editor.php' ) ) {
+ 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' ) ) {
34
return;
35
}
36
0 commit comments