signup_nonce_check()
signup_nonce_check( array $result ) 处理在signup_nonce_fie…
signup_nonce_check( array $result )
处理在signup_nonce_fields()中创建的signup nonce。
Process the signup nonce created in signup_nonce_fields().
目录锚点:#参数#源码
参数(Parameters)
| 参数 | 类型 | 说明 |
|---|---|---|
| $result | (array) |
源码(Source)
/**
* Process the signup nonce created in signup_nonce_fields().
*
* @since MU
*
* @param array $result
* @return array
*/
function signup_nonce_check( $result ) {
if ( !strpos( $_SERVER[ 'PHP_SELF' ], 'wp-signup.php' ) )
return $result;
if ( wp_create_nonce('signup_form_' . $_POST[ 'signup_form_id' ]) != $_POST['_signup_form'] )
wp_die( __( 'Please try again.' ) );
return $result;
}| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| MU (3.0.0) | wp-includes/ms-functions.php | 11 | 10 |
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。





还没有任何评论,赶紧来占个楼吧!