Make WordPress Core


Ignore:
Timestamp:
05/02/2006 10:08:34 PM (20 years ago)
Author:
ryan
Message:

nonce functions. #2678

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r3717 r3758  
    16641664}
    16651665
     1666function wp_nonce_url($actionurl, $action = -1) {
     1667    return add_query_arg('_wpnonce', wp_create_nonce($action), $actionurl);
     1668}
     1669
     1670function wp_nonce_field($action = -1) {
     1671    echo '<input type="hidden" name="_wpnonce" value="' . wp_create_nonce($action) . '" />';
     1672}
     1673
    16661674?>
Note: See TracChangeset for help on using the changeset viewer.