开发者

WordPress Notice "Undefined Index"

I am getting following notice in WordPress

Notice: Undefined index: _wpnonce in /var/www/vhosts/abc.biz/php/func.php on line 338

Any soluti开发者_如何学JAVAon? Thanks for help


I found the solution, have to use isset() to check _wpnonce value, before comparing it.

if ( isset($_POST['_wpnonce']) && $_POST['_wpnonce'] = '123456789' ) {}

Thanks.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜