Our system admins didn’t wait to update us to PHP 7, so we had to scramble to make our WordPress Multisites work. In the ai-twitter-feeds.php file, we had to change this line:
$status = preg_replace(“/((http:\/\/|https:\/\/)[^ )
]+)/e”, “‘‘. ((strlen(‘$1’)>=$linkMaxLen ? substr(‘$1′,0,$linkMaxLen).’…’:’$1′)).’‘”, $status);
to this:
$status = preg_replace_callback(“/((http:\/\/|https:\/\/)[^ )
]+)/”, function($m){ return ‘‘. ((strlen(‘$1’)>=$linkMaxLen ? substr(‘$1′,0,$linkMaxLen).’…’:’$1′)).’‘;}, $status);
At least, the pages are working again and it isn’t throwing any errors. I hope the new command we added accomplishes what the old one did.