WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/10/2019 07:22:07 PM (9 months ago)
Author:
SergeyBiryukov
Message:

Docs: Fix placement of some duplicate hook references.

Hook documentation should be on the line directly above the line containing the do_action() or apply_filters() call. The CS auto-fixing, which changed some inconsistent function calls to multi-line function calls, is part of the reason why this was no longer the case for a select group of duplicate hook references.

Includes minor code layout fixes.

See #47110.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-walker-category-checklist.php

    r42343 r46088  
    9696            }
    9797
    98             /** This filter is documented in wp-includes/category-template.php */
    9998            $output .= "\n" . '<li' . $class . '>' .
    10099                '<div class="' . $inner_class . '" data-term-id=' . $category->term_id .
    101100                ' tabindex="0" role="checkbox" aria-checked="' . $aria_checked . '">' .
     101                /** This filter is documented in wp-includes/category-template.php */
    102102                esc_html( apply_filters( 'the_category', $category->name, '', '' ) ) . '</div>';
    103103        } else {
    104             /** This filter is documented in wp-includes/category-template.php */
    105104            $output .= "\n<li id='{$taxonomy}-{$category->term_id}'$class>" .
    106105                '<label class="selectit"><input value="' . $category->term_id . '" type="checkbox" name="' . $name . '[]" id="in-' . $taxonomy . '-' . $category->term_id . '"' .
    107106                checked( in_array( $category->term_id, $args['selected_cats'] ), true, false ) .
    108107                disabled( empty( $args['disabled'] ), false, false ) . ' /> ' .
     108                /** This filter is documented in wp-includes/category-template.php */
    109109                esc_html( apply_filters( 'the_category', $category->name, '', '' ) ) . '</label>';
    110110        }
Note: See TracChangeset for help on using the changeset viewer.