wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
signup_nonce_check › WordPress Function
Odn/a
Przestarzałyn/a
› signup_nonce_check ( $result )
| Parametry: |
|
| Powrót: |
|
| Zdefiniowane na: |
|
| Codex: | |
| Dziennik zmian: |
|
Processes the signup nonce created in signup_nonce_fields().
Powiązane Funkcje: signup_nonce_fields, wp_nonce_tick, signup_another_blog, wp_version_check, ms_site_check
Źródło
function signup_nonce_check( $result ) {
if ( ! strpos( $_SERVER['PHP_SELF'], 'wp-signup.php' ) ) {
return $result;
}
if ( ! wp_verify_nonce( $_POST['_signup_form'], 'signup_form_' . $_POST['signup_form_id'] ) ) {
$result['errors']->add( 'invalid_nonce', __( 'Unable to submit this form, please try again.' ) );
}
return $result;
}