wordpress致命错误:第202行的/home/xxx/public\u html/wp content/themes/xxx/functions.php中的调用时间传递引用已被删除

wordpress致命错误:第202行的/home/xxx/public\u html/wp content/themes/xxx/functions.php中的调用时间传递引用已被删除,php,wordpress,Php,Wordpress,我的wordpress网页中有以下错误: wordpress致命错误:第202行的/home/xxx/public\u html/wp content/themes/xxx/functions.php中的调用时间传递引用已被删除 以下是相关代码: 200 class pont_Walker extends Walker_Nav_Menu{ 201 function end_el(&$output, $category, $depth, $args){ 202 $output=pr

我的wordpress网页中有以下错误:

wordpress致命错误:第202行的/home/xxx/public\u html/wp content/themes/xxx/functions.php中的调用时间传递引用已被删除

以下是相关代码:

200 class pont_Walker extends Walker_Nav_Menu{
201  function end_el(&$output, $category, $depth, $args){
202    $output=preg_replace("/([^>]{1})(<\/a>)/", "$1<span></span>$2", &$output);
203    $output.="</li>\n";
204  }
200级pont_Walker扩展了Walker导航菜单{
201函数结束(&$output、$category、$depth、$args){
202$output=preg_replace(“/([^>]{1})(/”,“$1$2”,&$output);
203美元输出。=“\n”;
204  }

从中删除(&O)&$output并试一试。:)

而且

$output=preg_replace("/([^>]{1})(<\/a>)/", "$1<span></span>$2", &$output);
$output=preg_replace(“/([^>]{1})()/”、“$1$2”和$output);

删除
preg_replace
行中
$output
之前的
。也可以看到重复项。非常感谢匹配Vijayakumar Selvaraj,所有工作已解决。谢谢Vijayakumar Selvaraj,所有工作正常,非常感谢
$output=preg_replace("/([^>]{1})(<\/a>)/", "$1<span></span>$2", &$output);