WordPress.org

Make WordPress Core

Ticket #9393: 9393-wp_explain_nonce.patch

File 9393-wp_explain_nonce.patch, 641 bytes (added by Viper007Bond, 5 years ago)

wp_explain_nonce() fix for custom nonces

  • wp-includes/functions.php

     
    22822282                                return $trans[$verb][$noun][0]; 
    22832283                        } 
    22842284                } 
     2285 
     2286                return apply_filters( 'explain_nonce_' . $verb . '-' . $noun, __( 'Are you sure you want to do this?' ), $matches[4] ); 
     2287        } else { 
     2288                return apply_filters( 'explain_nonce_' . $action, __( 'Are you sure you want to do this?' ) ); 
    22852289        } 
    2286  
    2287         return apply_filters( 'explain_nonce_' . $verb . '-' . $noun, __( 'Are you sure you want to do this?' ), $matches[4] ); 
    22882290} 
    22892291 
    22902292/**