Ticket #36361: 36361.patch
| File 36361.patch, 649 bytes (added by , 10 years ago) |
|---|
-
src/wp-includes/pluggable.php
1091 1091 * 0-12 hours ago, 2 if the nonce is valid and generated between 12-24 hours ago. 1092 1092 */ 1093 1093 function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) { 1094 if ( -1 == $action ) { 1095 _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '4.6' ); 1096 } 1097 1094 1098 $nonce = ''; 1095 1099 1096 1100 if ( $query_arg && isset( $_REQUEST[ $query_arg ] ) )