我刚刚为一个网站安装了RTA插件,它给了我一条错误消息:
constant plugins_url - assumed 'plugins_url' (this will throw an Error in a future version of PHP) in /home/scudhub1/public_html/wp-content/plugins/restricted-to-adults/compat.php on line 13
老实说,我既不是程序员,也不是代码作者,我试着在网上看看是否有其他人也遇到过同样的问题,但没有任何运气,所以我希望有人能对这个问题有所帮助。
如果您查看这里的那行代码,您可以看到代码在哪里发出警告。
您可以通过更新compat.php
文件将其更改为以下内容:
if ( !function_exists('plugins_url') ) {