WordPress.org

Make WordPress Core

Ticket #14927: fix-no-js-please-everywhere.diff

File fix-no-js-please-everywhere.diff, 1.6 KB (added by westi, 4 years ago)
  • public/wp-admin/edit-comments.php

     
    9494 
    9595        wp_redirect( $redirect_to ); 
    9696        exit; 
    97 } elseif ( ! empty( $_REQUEST['_wp_http_referer'] ) ) { 
     97} elseif ( ! empty( $_GET['_wp_http_referer'] ) ) { 
    9898         wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), stripslashes( $_SERVER['REQUEST_URI'] ) ) ); 
    9999         exit; 
    100100} 
  • public/wp-admin/link-manager.php

     
    3030                wp_redirect( add_query_arg('deleted', count( $bulklinks ), admin_url( 'link-manager.php' ) ) ); 
    3131                exit; 
    3232        } 
    33 } elseif ( ! empty( $_REQUEST['_wp_http_referer'] ) ) { 
     33} elseif ( ! empty( $_GET['_wp_http_referer'] ) ) { 
    3434         wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), stripslashes( $_SERVER['REQUEST_URI'] ) ) ); 
    3535         exit; 
    3636} 
  • public/wp-admin/upload.php

     
    125125        $location = $wp_list_table->add_query_args( $location ); 
    126126        wp_redirect( $location ); 
    127127        exit; 
    128 } elseif ( ! empty( $_REQUEST['_wp_http_referer'] ) ) { 
     128} elseif ( ! empty( $_GET['_wp_http_referer'] ) ) { 
    129129         wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), stripslashes( $_SERVER['REQUEST_URI'] ) ) ); 
    130130         exit; 
    131131}