WordPress.org

Make WordPress Core

Ticket #36361: 36361.patch

File 36361.patch, 649 bytes (added by johnbillion, 5 years ago)
  • src/wp-includes/pluggable.php

     
    10911091 *                   0-12 hours ago, 2 if the nonce is valid and generated between 12-24 hours ago.
    10921092 */
    10931093function 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
    10941098        $nonce = '';
    10951099
    10961100        if ( $query_arg && isset( $_REQUEST[ $query_arg ] ) )