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/template.php

    r41184 r41221  
    215215                <?php
    216216                /** This filter is documented in wp-includes/category-template.php */
    217                 echo esc_html( apply_filters( 'the_category', $term->name ) );
     217                echo esc_html( apply_filters( 'the_category', $term->name, '', '' ) );
    218218                ?>
    219219            </label>
     
    256256
    257257        /** This filter is documented in wp-includes/category-template.php */
    258         $name = esc_html( apply_filters( 'the_category', $category->name ) );
     258        $name = esc_html( apply_filters( 'the_category', $category->name, '', '' ) );
    259259        $checked = in_array( $cat_id, $checked_categories ) ? ' checked="checked"' : '';
    260260        echo '<li id="link-category-', $cat_id, '"><label for="in-link-category-', $cat_id, '" class="selectit"><input value="', $cat_id, '" type="checkbox" name="link_category[]" id="in-link-category-', $cat_id, '"', $checked, '/> ', $name, "</label></li>";
Note: See TracChangeset for help on using the changeset viewer.