WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/03/2017 04:12:25 PM (3 years ago)
Author:
johnbillion
Message:

General: Fix more instances of inconsistent parameters passed to various filters, plus fix some filter docs.

See #38462, #41017

File:
1 edited

Legend:

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

    r40348 r41221  
    9797                '<div class="' . $inner_class . '" data-term-id=' . $category->term_id .
    9898                ' tabindex="0" role="checkbox" aria-checked="' . $aria_checked . '">' .
    99                 esc_html( apply_filters( 'the_category', $category->name ) ) . '</div>';
     99                esc_html( apply_filters( 'the_category', $category->name, '', '' ) ) . '</div>';
    100100        } else {
    101101            /** This filter is documented in wp-includes/category-template.php */
     
    104104                checked( in_array( $category->term_id, $args['selected_cats'] ), true, false ) .
    105105                disabled( empty( $args['disabled'] ), false, false ) . ' /> ' .
    106                 esc_html( apply_filters( 'the_category', $category->name ) ) . '</label>';
     106                esc_html( apply_filters( 'the_category', $category->name, '', '' ) ) . '</label>';
    107107        }
    108108    }
Note: See TracChangeset for help on using the changeset viewer.