weixin_33725722 2015-04-23 14:31 采纳率: 0%
浏览 46

何时使用WordPress Nonce

My WordPress plugin, Ajax load More currently uses a nonce variable with a call to admin-ajax.php on the front end which helps protect URLs from certain types of misuse, malicious or otherwise.

The issue that I'm having is various caching plugins such as WP Super Cache, WP Fastest Cache and W3 Total Cache are caching the nonce variable and this is causing errors when the plugin tries to verify the nonce.

My question is, do I need the nonce verification?

The plugin is only retrieving post data using a WP_query() and not sending anything to the DB so it seems to me like it might be overkill.

  • 写回答

1条回答

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 房号如何排序,sql或算法
      • ¥15 macOS使用IDEA 2022.2.4打包JDK6项目报错
      • ¥20 OpenCV-Python简单轮廓寻找
      • ¥20 使用matlab进行含参数的最优化求解及数值模拟
      • ¥20 MATLAB找出一维变量中的局部极大值和局部极小值,并进行运算
      • ¥15 有Chang求三维杆单元几何非线性分析matlab代码
      • ¥50 使用unity easyar录屏功能。录屏视频整体色调很暗
      • ¥50 pyinstaller 打包问题
      • ¥15 无法使用cnssc调取网页数据
      • ¥15 Pycharm安装en_core_web_sm失败出现Could not find a version that satisfies the requirement spacy报错