-1

I have this error in my wordpress webpage:

wordpress Fatal error: Call-time pass-by-reference has been removed in /home/xxx/public_html/wp-content/themes/xxx/functions.php on line 202

Here is the relevant code:

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  }
halfer
  • 19,824
  • 17
  • 99
  • 186
Web8.us
  • 1
  • 1
  • 7

1 Answers1

0

Remove & from &$output & give a try. :)

function end_el($output, $category, $depth, $args) {.... }

and in

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