Make WordPress Core

Ticket #63224: 63224.patch

File 63224.patch, 551 bytes (added by dilipbheda, 14 months ago)
  • src/wp-admin/site-editor.php

    diff --git a/src/wp-admin/site-editor.php b/src/wp-admin/site-editor.php
    index 0f1415ea9b..dba0c5981b 100644
    a b if ( ! current_user_can( 'edit_theme_options' ) ) { 
    3131 */
    3232function _wp_get_site_editor_redirection_url() {
    3333        global $pagenow;
    34         if ( 'site-editor.php' !== $pagenow || isset( $_REQUEST['p'] ) || ! $_SERVER['QUERY_STRING'] ) {
     34        if ( 'site-editor.php' !== $pagenow || isset( $_REQUEST['p'] ) || empty( $_SERVER['QUERY_STRING'] ) ) {
    3535                return false;
    3636        }
    3737