WordPress: Function Reference/check admin referer:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: == Description == Makes sure that a user was referred from another admin page, to avoid security exploits. Nonces related. == Parameters == {{Parameter|$action|string|Action nonce|defau...)
 
无编辑摘要
第1行: 第1行:
== Description ==
== Description ==
== 描述==


Makes sure that a user was referred from another admin page, to avoid security exploits. Nonces related.
Makes sure that a user was referred from another admin page, to avoid security exploits. Nonces related.
确定用户是来自另一个管理网页,避免安全问题。Nonces related。


== Parameters ==
== Parameters ==
== 参数 ==
{{Parameter|$action|string|Action nonce|defaults to int -1|-1}}
{{Parameter|$action|string|Action nonce|defaults to int -1|-1}}
{{Parameter|$query_arg|string|where to look for nonce in $_REQUEST (since 2.5)|optional|'_wpnonce'}}
{{Parameter|$query_arg|string|where to look for nonce in $_REQUEST (since 2.5)|optional|'_wpnonce'}}
{{Parameter|$action|string|Action nonce|默认为 int -1|-1}}
{{Parameter|$query_arg|string|从哪儿查找 nonce in $_REQUEST (since 2.5)|optional|'_wpnonce'}}


== Usage ==
== Usage ==
== 用法 ==
%%% <?php check_admin_referer('bcn_admin_options'); ?> %%%


%%% <?php check_admin_referer('bcn_admin_options'); ?> %%%
%%% <?php check_admin_referer('bcn_admin_options'); ?> %%%


== See also ==
== See also ==
== 也看看 ==
* [[WordPress:Function Reference/wp_verify_nonce|wp_verify_nonce]]
* [[WordPress:Function Reference/wp_verify_nonce|wp_verify_nonce]]
* [[WordPress:Function Reference/do_action|do_action]]
* [[WordPress:Function Reference/do_action|do_action]]
* [[WordPress:Wordpress Nonce Implementation]]
* [[WordPress:Wordpress Nonce Implementation]]
* [[WordPress:Function Reference]]
* [[WordPress:Function Reference]]
* [[WordPress:Function Reference/wp_verify_nonce|wp_verify_nonce]]
* [[WordPress:Function Reference/do_action|do_action]]
* [[WordPress:Wordpress Nonce Implementation|WordPress Nonce 执行]]
* [[WordPress:Function Reference|函数参考]]

2008年7月22日 (二) 15:02的版本

Description

描述

Makes sure that a user was referred from another admin page, to avoid security exploits. Nonces related.

确定用户是来自另一个管理网页,避免安全问题。Nonces related。

Parameters

参数

Usage

用法

%%% <?php check_admin_referer('bcn_admin_options'); ?> %%%

%%% <?php check_admin_referer('bcn_admin_options'); ?> %%%

See also

也看看