Make WordPress Core


Ignore:
Timestamp:
09/27/2017 02:38:40 PM (9 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r41326 r41618  
    121121                        'add_or_remove_items' => null,
    122122                        'choose_from_most_used' => null,
     123                        'back_to_items' => __( '← Back to Link Categories' ),
    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` and `back_to_items` labels.
    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 *     @type string $back_to_items              Label displayed after a term has been updated.
    492494 * }
    493495 */
     
    522524                'items_list' => array( __( 'Tags list' ), __( 'Categories list' ) ),
    523525                'most_used' => array( null, __( 'Most Used' ) ),
     526                'back_to_items' => array( __( '← Back to Tags' ), __( '← Back to Categories' ) ),
    524527        );
    525528        $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
Note: See TracChangeset for help on using the changeset viewer.