Make WordPress Core

Changeset 41618

Timestamp:
09/27/2017 02:38:40 PM (7 years ago)
Author:
johnbillion
Message:

Taxonomy: Introduce a back_to_items taxonomy label.

This is used after updating a taxonomy term in the link to return to the term listing screen.

Props benoitchantre

Fixes #41898

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tag-form.php

    r41522 r41618  
    7676    <?php if ( $wp_http_referer ) { ?>
    7777    <p><a href="<?php echo esc_url( wp_validate_redirect( esc_url_raw( $wp_http_referer ), admin_url( 'term.php?taxonomy=' . $taxonomy ) ) ); ?>"><?php
    78         /* translators: %s: taxonomy name */
    79         printf( _x( '&larr; Back to %s', 'admin screen' ), $tax->labels->name );
     78        echo esc_html( $tax->labels->back_to_items );
    8079    ?></a></p>
    8180    <?php } ?>
  • trunk/src/wp-includes/taxonomy.php

    r41326 r41618  
    121121            'add_or_remove_items' => null,
    122122            'choose_from_most_used' => null,
     123
    123124        ),
    124125        'capabilities' => array(
     
    453454 * @since 4.3.0 Added the `no_terms` label.
    454455 * @since 4.4.0 Added the `items_list_navigation` and `items_list` labels.
    455  * @since 4.9.0 Added the `most_used` label.
     456 * @since 4.9.0 Added the `most_used` .
    456457 *
    457458 * @param WP_Taxonomy $tax Taxonomy object.
     
    490491 *     @type string $most_used                  Title used for the Most Used panel. Not used for non-hierarchical
    491492 *                                              taxonomies. Default 'Most Used'.
     493
    492494 * }
    493495 */
     
    522524        'items_list' => array( __( 'Tags list' ), __( 'Categories list' ) ),
    523525        'most_used' => array( null, __( 'Most Used' ) ),
     526
    524527    );
    525528    $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
Note: See TracChangeset for help on using the changeset viewer.