@@ -111018,6 +111018,7 @@ function is_blog_installed()
111018111018 * @param int|string $action Optional. Nonce action name. Default -1.
111019111019 * @param string $name Optional. Nonce name. Default '_wpnonce'.
111020111020 * @return string Escaped URL with nonce action added.
111021+ * @phpstan-param -1|string $action
111021111022 */
111022111023 function wp_nonce_url($actionurl, $action = -1, $name = '_wpnonce')
111023111024 {
@@ -111047,6 +111048,7 @@ function wp_nonce_url($actionurl, $action = -1, $name = '_wpnonce')
111047111048 * @param bool $referer Optional. Whether to set the referer field for validation. Default true.
111048111049 * @param bool $display Optional. Whether to display or return hidden form field. Default true.
111049111050 * @return string Nonce field HTML markup.
111051+ * @phpstan-param -1|string $action
111050111052 */
111051111053 function wp_nonce_field($action = -1, $name = '_wpnonce', $referer = \true, $display = \true)
111052111054 {
@@ -127986,6 +127988,8 @@ function auth_redirect()
127986127988 * @return int|false 1 if the nonce is valid and generated between 0-12 hours ago,
127987127989 * 2 if the nonce is valid and generated between 12-24 hours ago.
127988127990 * False if the nonce is invalid.
127991+ * @phpstan-param -1|string $action
127992+ * @phpstan-return 1|2|false
127989127993 */
127990127994 function check_admin_referer($action = -1, $query_arg = '_wpnonce')
127991127995 {
@@ -128004,6 +128008,8 @@ function check_admin_referer($action = -1, $query_arg = '_wpnonce')
128004128008 * @return int|false 1 if the nonce is valid and generated between 0-12 hours ago,
128005128009 * 2 if the nonce is valid and generated between 12-24 hours ago.
128006128010 * False if the nonce is invalid.
128011+ * @phpstan-param -1|string $action
128012+ * @phpstan-return 1|2|false
128007128013 */
128008128014 function check_ajax_referer($action = -1, $query_arg = \false, $stop = \true)
128009128015 {
@@ -128202,6 +128208,8 @@ function wp_nonce_tick($action = -1)
128202128208 * @return int|false 1 if the nonce is valid and generated between 0-12 hours ago,
128203128209 * 2 if the nonce is valid and generated between 12-24 hours ago.
128204128210 * False if the nonce is invalid.
128211+ * @phpstan-param -1|string $action
128212+ * @phpstan-return 1|2|false
128205128213 */
128206128214 function wp_verify_nonce($nonce, $action = -1)
128207128215 {
@@ -128215,6 +128223,7 @@ function wp_verify_nonce($nonce, $action = -1)
128215128223 *
128216128224 * @param string|int $action Scalar value to add context to the nonce.
128217128225 * @return string The token.
128226+ * @phpstan-param -1|string $action
128218128227 */
128219128228 function wp_create_nonce($action = -1)
128220128229 {
0 commit comments