mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
nonce functions. #2678
git-svn-id: https://develop.svn.wordpress.org/trunk@3758 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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) . '" />';
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user