[wp-trac] [WordPress Trac] #40685: /wp-includes/class-wp-hook.php function resort_active_iterations not working correct
WordPress Trac
noreply at wordpress.org
Sat May 6 19:23:27 UTC 2017
#40685: /wp-includes/class-wp-hook.php function resort_active_iterations not
working correct
--------------------------+-----------------------------
Reporter: tim2017 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.7.4
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
if you have current priority of 5, whose only hook is cancelling itself
(remove_filter) and the new priority list is for example (2,7,12), then
this part
{{{#!php
while ( current( $iteration ) < $current ) {
if ( false === next( $iteration ) ) {
break;
}
}
}}}
sets the current pointer to 7, so the next priority worked on is the 12 in
apply_filters function, while it should be 7.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40685>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list