Active
Project:
Pirate
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Sep 2010 at 17:23 UTC
Updated:
23 May 2020 at 18:44 UTC
Jump to comment: Most recent
Reported by Damien Tourmand in #559084: Release Drupal 7 version of Pirate. See #855988: Get rid of preg_replace with /e in decode_entities() for more info.
Comments
Comment #1
BenL commentedEvery time it tries to replace a word, it says:
"Deprecated function: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in Drupal\pirate\Plugin\Filter\Pirate->process() (line 67 of sites/www-dev.arisia.org/modules/pirate/src/Plugin/Filter/Pirate.php)."
Comment #4
sillygwailoThis will require some work involving preg_replace_callback(). For the time being, I removed the /e modifier and the code that it called in the dev versions of the module.