Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (7 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-dependencies.php

    r46661 r47122  
    153153                        $queued       = in_array( $handle, $this->to_do, true );
    154154
    155                         if ( in_array( $handle, $this->done, true ) ) { // Already done
     155                        if ( in_array( $handle, $this->done, true ) ) { // Already done.
    156156                                continue;
    157157                        }
     
    160160                        $new_group = $this->groups[ $handle ];
    161161
    162                         if ( $queued && ! $moved ) { // already queued and in the right group
     162                        if ( $queued && ! $moved ) { // Already queued and in the right group.
    163163                                continue;
    164164                        }
     
    365365                switch ( $list ) {
    366366                        case 'registered':
    367                         case 'scripts': // back compat
     367                        case 'scripts': // Back compat.
    368368                                if ( isset( $this->registered[ $handle ] ) ) {
    369369                                        return $this->registered[ $handle ];
     
    379379
    380380                        case 'to_do':
    381                         case 'to_print': // back compat
     381                        case 'to_print': // Back compat.
    382382                                return in_array( $handle, $this->to_do );
    383383
    384384                        case 'done':
    385                         case 'printed': // back compat
     385                        case 'printed': // Back compat.
    386386                                return in_array( $handle, $this->done );
    387387                }
Note: See TracChangeset for help on using the changeset viewer.