WordPress.org

Make WordPress Core

Ticket #41898: 41898.diff

File 41898.diff, 2.1 KB (added by benoitchantre, 4 years ago)
  • wp-admin/edit-tag-form.php

    diff --git wp-admin/edit-tag-form.php wp-admin/edit-tag-form.php
    index e3fb222..c760590 100644
    do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?> 
    7474<div id="message" class="updated">
    7575        <p><strong><?php echo $message; ?></strong></p>
    7676        <?php if ( $wp_http_referer ) { ?>
    77         <p><a href="<?php echo esc_url( $wp_http_referer ); ?>"><?php
    78                 /* translators: %s: taxonomy name */
    79                 printf( _x( '&larr; Back to %s', 'admin screen' ), $tax->labels->name );
    80         ?></a></p>
     77        <p><a href="<?php echo esc_url( $wp_http_referer ); ?>"><?php esc_html( $tax->labels->back_to_items ); ?></a></p>
    8178        <?php } ?>
    8279</div>
    8380<?php endif; ?>
  • wp-includes/taxonomy.php

    diff --git wp-includes/taxonomy.php wp-includes/taxonomy.php
    index 87fe0eb..7739566 100644
    function create_initial_taxonomies() { 
    120120                        'separate_items_with_commas' => null,
    121121                        'add_or_remove_items' => null,
    122122                        'choose_from_most_used' => null,
     123                        'back_to_items' => __( '&larr; Back to Link Categories' ),
    123124                ),
    124125                'capabilities' => array(
    125126                        'manage_terms' => 'manage_links',
    function unregister_taxonomy( $taxonomy ) { 
    489490 *     @type string $items_list                 Label for the table hidden heading.
    490491 *     @type string $most_used                  Title used for the Most Used panel. Not used for non-hierarchical
    491492 *                                              taxonomies. Default 'Most Used'.
     493 *     @type string $back_to_items              Label displayed after a term has been updated.
    492494 * }
    493495 */
    494496function get_taxonomy_labels( $tax ) {
    function get_taxonomy_labels( $tax ) { 
    521523                'items_list_navigation' => array( __( 'Tags list navigation' ), __( 'Categories list navigation' ) ),
    522524                'items_list' => array( __( 'Tags list' ), __( 'Categories list' ) ),
    523525                'most_used' => array( null, __( 'Most Used' ) ),
     526                'back_to_items' => array( __( '&larr; Back to Tags' ), __( '&larr; Back to Categories' ) ),
    524527        );
    525528        $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
    526529