[wp-trac] [WordPress Trac] #39338: class-wp-hook.php - apply_filters() infinite loop

WordPress Trac noreply at wordpress.org
Fri Dec 21 20:18:23 UTC 2018


#39338: class-wp-hook.php - apply_filters() infinite loop
--------------------------+-----------------------------
 Reporter:  frettled      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Plugins       |     Version:  4.7
 Severity:  critical      |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+-----------------------------

Comment (by frettled):

 Replying to [comment:47 mordisko]:
 > If there's anything we can do, please, let us know.

 As I see it, there are two reasonably easy work-arounds:

 1) Hot-patch all Wordpress installations that you come across with the
 original, suggested patch.
 2) Disable logging of PHP warnings for Wordpress sites - which may be
 sabotaged when other things reenable logging.

 There is also a slightly more difficult work-around:

 3) Use an ELK stack (or similar), filter out warnings like these before
 they are stored to the log server. That is more CPU intensive, but should
 be workable, and you can probably change webserver log rotation to be by
 file size.

 Either work-around is more workable than waiting for a fix. It's been two
 years, this fix is *never* going to make it to older supported versions of
 Wordpress, and if it makes it to e.g WP 5.4 sometime in the future, you
 will still be looking at WP 3.7 through 5.3 making the same mistake.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/39338#comment:48>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list