Propper verify nonce use on order tracking page.
This commit is contained in:
parent
5c1ad63876
commit
afc0ddf6e7
|
@ -42,9 +42,7 @@ class WC_Shortcode_Order_Tracking {
|
|||
|
||||
global $post;
|
||||
|
||||
if ( ! empty( $_REQUEST['orderid'] ) ) {
|
||||
|
||||
wp_verify_nonce( $_POST['_wpnonce'], 'woocommerce-order_tracking' );
|
||||
if ( ! empty( $_REQUEST['orderid'] ) && isset( $_POST['_wpnonce'] ) && wp_verify_nonce( $_POST['_wpnonce'], 'woocommerce-order_tracking' ) ) {
|
||||
|
||||
$order_id = empty( $_REQUEST['orderid'] ) ? 0 : esc_attr( $_REQUEST['orderid'] );
|
||||
$order_email = empty( $_REQUEST['order_email'] ) ? '' : esc_attr( $_REQUEST['order_email']) ;
|
||||
|
|
Loading…
Reference in New Issue