Skip to content

Commit

Permalink
Fix query string argument
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Nov 25, 2024
1 parent b3682d3 commit 3754c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/experimental/site-editor-permalinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function gutenberg_get_posts_dataviews_url( $path = '', $query = array() ) {

function gutenberg_redirect_site_editor_to_design() {
global $pagenow;
if ( 'site-editor.php' !== $pagenow || isset( $_REQUEST['p'] ) || ! isset( $_SERVER['querystring'] ) ) {
if ( 'site-editor.php' !== $pagenow || isset( $_REQUEST['p'] ) || ! isset( $_SERVER['QUERY_STRING'] ) ) {
return;
}

Expand Down

0 comments on commit 3754c93

Please sign in to comment.