PHP 7.0 issue?
-
Hi Gary,
Great little plugin – thank you! Just to let you know that on my server running PHP 7.0 and the latest WordPress I received the following error when editing and saving a page with the plugin:
Warning: preg_replace(): No ending delimiter '&' found in ...../wp-content/plugins/wp-places/includes/googlePlaces.php on line 8In order to solve it I changed this:
$location=preg_replace("&", "and", $location);…to this:
$location=preg_replace("~&~", "and", $location);And it seems to be working. Hope this helps a little.
Could you use str_replace instead?
Thanks again for the plugin!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘PHP 7.0 issue?’ is closed to new replies.