Changeset 38573
- Timestamp:
- 09/08/2016 04:16:39 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-hook.php
r38571 r38573 59 59 * @since 4.7.0 60 60 * @access private 61 * @var bool ean61 * @var bool 62 62 */ 63 63 private $doing_action = false; … … 102 102 * @access private 103 103 * 104 * @param bool|int $new_priority The priority of the new filter being added. Default false, for no priority being added. 105 * @param bool $priority_existed Flag for whether the priority already existed before the new filter was added. 104 * @param bool|int $new_priority Optional. The priority of the new filter being added. Default false, 105 * for no priority being added. 106 * @param bool $priority_existed Optional. Flag for whether the priority already existed before the new 107 * filter was added. Default false. 106 108 */ 107 109 private function resort_active_iterations( $new_priority = false, $priority_existed = false ) { … … 139 141 // If we have a new priority that didn't exist, but ::apply_filters() or ::do_action() thinks it's the current priority... 140 142 if ( $new_priority === $this->current_priority[ $index ] && ! $priority_existed ) { 141 // ... and the new priority is the same as what $this->iterations thinks is the previous priority, 142 // We need to move back to it. 143 /* 144 * ... and the new priority is the same as what $this->iterations thinks is the previous 145 * priority, we need to move back to it. 146 */ 143 147 144 148 if ( false === current( $iteration ) ) { … … 196 200 * 197 201 * @param callable|bool $function_to_check Optional. The callback to check for. Default false. 198 * @param string $tag Optional. The name of the filter hook. Default empty.199 * Used for building the callback ID when SPL is not available.202 * @param string $tag Optional. The name of the filter hook. Used for building 203 * the callback ID when SPL is not available. Default empty. 200 204 * @return bool|int The priority of that hook is returned, or false if the function is not attached. 201 205 */ … … 225 229 * @access public 226 230 * 227 * @return bool True if callbacks have been registered for the current hook, false otherwise.231 * @return bool True if callbacks have been registered for the current hook, otherwise false. 228 232 */ 229 233 public function has_filters() { … … 349 353 350 354 /** 351 * Normalizes filters set up before WordPress has initialized to WP_Hook objects.355 * Normalizes filters set up before WordPress has initialized to WP_Hook objects. 352 356 * 353 357 * @since 4.7.0 … … 446 450 447 451 /** 448 * Return the current element452 * Returns the current element. 449 453 * 450 454 * @since 4.7.0 … … 460 464 461 465 /** 462 * Move forward to the next element466 * Moves forward to the next element. 463 467 * 464 468 * @since 4.7.0 … … 474 478 475 479 /** 476 * Return the key of the current element480 * Returns the key of the current element. 477 481 * 478 482 * @since 4.7.0 … … 488 492 489 493 /** 490 * Checks if current position is valid 494 * Checks if current position is valid. 491 495 * 492 496 * @since 4.7.0 … … 502 506 503 507 /** 504 * Rewind the Iterator to the first element508 * Rewinds the Iterator to the first element. 505 509 * 506 510 * @since 4.7.0 … … 513 517 } 514 518 515 516 519 }
Note: See TracChangeset
for help on using the changeset viewer.