Changeset 47122 for trunk/src/wp-includes/class-wp-hook.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-hook.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-hook.php
r47088 r47122 81 81 ); 82 82 83 // if we're adding a new priority to the list, put them back in sorted order83 // If we're adding a new priority to the list, put them back in sorted order. 84 84 if ( ! $priority_existed && count( $this->callbacks ) > 1 ) { 85 85 ksort( $this->callbacks, SORT_NUMERIC ); … … 136 136 if ( $new_priority === $this->current_priority[ $index ] && ! $priority_existed ) { 137 137 /* 138 * ... and the new priority is the same as what $this->iterations thinks is the previous138 * ...and the new priority is the same as what $this->iterations thinks is the previous 139 139 * priority, we need to move back to it. 140 140 */ … … 281 281 } 282 282 283 // Avoid the array_slice if possible.283 // Avoid the array_slice() if possible. 284 284 if ( $the_['accepted_args'] == 0 ) { 285 285 $value = call_user_func( $the_['function'] );
Note: See TracChangeset
for help on using the changeset viewer.