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

WordPress Trac noreply at wordpress.org
Fri Jan 2 00:23:37 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 close  |     Focuses:
------------------------------------------+------------------------------

Comment (by valendesigns):

 Replying to [comment:10 dd32]:
 > Realistically I agree with adding a unit test that covers it, but I do
 question if unit testing the addition of filters is worthwhile, and rather
 that a test on the order of execution might be more useful.

 That sounds reasonable to me. I'll rewrite the tests to cover the order of
 execution and leave the filter in touched.

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


More information about the wp-trac mailing list