nonce functions. #2678

git-svn-id: https://develop.svn.wordpress.org/trunk@3758 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-05-02 22:08:34 +00:00
parent f558a75316
commit b96cd6f60c
3 changed files with 71 additions and 5 deletions

View File

@@ -1663,4 +1663,12 @@ function is_blog_installed() {
return $installed;
}
function wp_nonce_url($actionurl, $action = -1) {
return add_query_arg('_wpnonce', wp_create_nonce($action), $actionurl);
}
function wp_nonce_field($action = -1) {
echo '<input type="hidden" name="_wpnonce" value="' . wp_create_nonce($action) . '" />';
}
?>