WordPress.org

Make WordPress Core

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

File fix-no-js-please-everywhere-use-get.14927.diff, 1.8 KB (added by filosofo, 4 years ago)
  • 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} 
  • 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} 
     
    213213 
    214214<?php $wp_list_table->views(); ?> 
    215215 
    216 <form id="posts-filter" action="" method="post"> 
     216<form id="posts-filter" action="" method="get"> 
    217217 
    218218<?php $wp_list_table->search_box( __( 'Search Media' ), 'media' ); ?> 
    219219 
  • 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}