我使用的是停止使用的WordPress主题(没有支持)--除了基本知识和下面的错误信息之外,我什么都不知道:
/homepages/htdocs/wp-content/themes/topbest/functions.php中的
警告:在第346行中使用未定义的常量reply_text -假定的‘reply_text’(这将在以后的reply_text版本中引发错误)
我登录了我的服务器,下面是functions.php文件的第346行如下所示。
<span class=”reply”><?php comment_reply_link(array_merge( $args, array(‘add_below’ => $add_below, ‘depth’ => $depth, ‘max_depth’ => $args[‘max_depth’], reply_text => ‘Comment Reply’))) ?></span>**知道怎么解决这个问题吗?
谢谢,
发布于 2020-05-16 00:10:55
用这样的引号环绕reply_text
<span class="reply"><?php comment_reply_link(array_merge( $args, array('add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => 'Comment Reply'))) ?></span>如果这会破坏您的应用程序,请通过
var_dump(reply_text);并将输出字符串放入引号中。
https://stackoverflow.com/questions/61830235
复制相似问题