WordPress.org

Make WordPress Core

Ticket #40757: 40757.patch

File 40757.patch, 3.3 KB (added by bcworkz, 3 years ago)

Provide 2nd & 3rd parms

  • src/wp-admin/edit-tags.php

     
    544544                /* translators: %s: default category */
    545545                __( 'Deleting a category does not delete the posts in that category. Instead, posts that were only assigned to the deleted category are set to the category %s.' ),
    546546                /** This filter is documented in wp-includes/category-template.php */
    547                 '<strong>' . apply_filters( 'the_category', get_cat_name( get_option( 'default_category') ) ) . '</strong>'
     547                '<strong>' . apply_filters( 'the_category', get_cat_name( get_option( 'default_category') ), '', '') . '</strong>'
    548548        );
    549549        ?>
    550550</p>
  • src/wp-admin/includes/class-walker-category-checklist.php

     
    9696                        $output .= "\n" . '<li' . $class . '>' .
    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 */
    102102                        $output .= "\n<li id='{$taxonomy}-{$category->term_id}'$class>" .
     
    103103                                '<label class="selectit"><input value="' . $category->term_id . '" type="checkbox" name="'.$name.'[]" id="in-'.$taxonomy.'-' . $category->term_id . '"' .
    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        }
    109109
  • src/wp-admin/includes/template.php

     
    214214                                <input id="in-<?php echo $id; ?>" type="checkbox" <?php echo $checked; ?> value="<?php echo (int) $term->term_id; ?>" <?php disabled( ! current_user_can( $tax->cap->assign_terms ) ); ?> />
    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>
    220220                </li>
     
    255255                $cat_id = $category->term_id;
    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>";
    261261        }