[wp-trac] [WordPress Trac] #41185: current_priority() in WP_Hook broken after adding callback inside same hook

WordPress Trac noreply at wordpress.org
Wed Jun 28 12:15:54 UTC 2017


#41185: current_priority() in WP_Hook broken after adding callback inside same hook
--------------------------+------------------------------
 Reporter:  kraftner      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Plugins       |     Version:  4.8
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by johnjamesjacoby):

 Good catch. If true, it is unintentional, and goes against efforts in the
 past 2 years to allow for and support same-action additions. I am unsure
 if same-priority was ever addressed, and without looking, doubt that there
 are unit-tests for this case.

 Todos:
 * Confirm the bug
 * Find the related resolved issue from recent years
 * Confirm missing test coverage
 * Write tests to reproduce the bug
 * Patch (likely as suggested above) to fix the comparison logic

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


More information about the wp-trac mailing list