WordPress.org

Make WordPress Core

Ticket #22423: functions.diff

File functions.diff, 666 bytes (added by MatthewRuddy, 20 months ago)
  • /Users/matthew_ruddy/

    old new  
    11511151 * @param string $action Optional. Nonce action name 
    11521152 * @return string URL with nonce action added. 
    11531153 */ 
    1154 function wp_nonce_url( $actionurl, $action = -1 ) { 
     1154function wp_nonce_url( $actionurl, $action = -1, $arg = '_wpnonce' ) { 
    11551155   $actionurl = str_replace( '&', '&', $actionurl ); 
    1156    return esc_html( add_query_arg( '_wpnonce', wp_create_nonce( $action ), $actionurl ) ); 
     1156   return esc_html( add_query_arg( $arg, wp_create_nonce( $action ), $actionurl ) ); 
    11571157} 
    11581158 
    11591159/**