Make WordPress Core


Ignore:
Timestamp:
09/10/2019 07:22:07 PM (5 years 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-includes/class-walker-category.php

    r45932 r46088  
    9898    public function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
    9999        /** This filter is documented in wp-includes/category-template.php */
    100         $cat_name = apply_filters(
    101             'list_cats',
    102             esc_attr( $category->name ),
    103             $category
    104         );
     100        $cat_name = apply_filters( 'list_cats', esc_attr( $category->name ), $category );
    105101
    106102        // Don't generate an element if the category name is empty.
Note: See TracChangeset for help on using the changeset viewer.