[wp-trac] [WordPress Trac] #30875: enforce integers in add_filter priority

WordPress Trac noreply at wordpress.org
Thu Jan 1 14:48:10 UTC 2015


#30875: enforce integers in add_filter priority
------------------------------------+------------------------------
 Reporter:  drrobotnik              |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Plugins                 |     Version:  4.1
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+------------------------------
Changes (by valendesigns):

 * keywords:  close => has-patch dev-feedback


Comment:

 The [attachment:30875.diff] adds unit tests and solves the issue in a
 backwards compatible way. We can't return `false` since actions are
 expected to run no mater what you enter. However, we can normalize the
 priority a bit.

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


More information about the wp-trac mailing list