Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-hook.php

    r47088 r47122  
    8181        );
    8282
    83         // if we're adding a new priority to the list, put them back in sorted order
     83        // If we're adding a new priority to the list, put them back in sorted order.
    8484        if ( ! $priority_existed && count( $this->callbacks ) > 1 ) {
    8585            ksort( $this->callbacks, SORT_NUMERIC );
     
    136136            if ( $new_priority === $this->current_priority[ $index ] && ! $priority_existed ) {
    137137                /*
    138                  * ... and the new priority is the same as what $this->iterations thinks is the previous
     138                 * ...and the new priority is the same as what $this->iterations thinks is the previous
    139139                 * priority, we need to move back to it.
    140140                 */
     
    281281                }
    282282
    283                 // Avoid the array_slice if possible.
     283                // Avoid the array_slice() if possible.
    284284                if ( $the_['accepted_args'] == 0 ) {
    285285                    $value = call_user_func( $the_['function'] );
Note: See TracChangeset for help on using the changeset viewer.