Make WordPress Core


Ignore:
Timestamp:
11/10/2021 12:44:49 AM (3 years ago)
Author:
peterwilsoncc
Message:

Taxonomy: Change some static strings to registration labels.

Add additional label options to register_taxonomy() to allow developers further flexibility for customizing the edit taxonomy screen.

Props mclaurent, swissspidy, johnbillion, jeremyescott, theMikeD, jeremyfelt, dontgo2sleep, SergeyBiryukov, audrasjb, Boniu91.
Fixes #43060.

File:
1 edited

Legend:

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

    r52079 r52094  
    647647    $nohier_vs_hier_defaults = array(
    648648        'name'                       => array( _x( 'Tags', 'taxonomy general name' ), _x( 'Categories', 'taxonomy general name' ) ),
     649        'name_description'           => array( __( 'The name is how it appears on your site.' ), __( 'The name is how it appears on your site.' ) ),
    649650        'singular_name'              => array( _x( 'Tag', 'taxonomy singular name' ), _x( 'Category', 'taxonomy singular name' ) ),
    650651        'search_items'               => array( __( 'Search Tags' ), __( 'Search Categories' ) ),
     
    653654        'parent_item'                => array( null, __( 'Parent Category' ) ),
    654655        'parent_item_colon'          => array( null, __( 'Parent Category:' ) ),
     656        'parent_description'         => array( null, __( 'Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.' ) ),
     657        'slug_description'           => array( __( 'The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ), __( 'The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ) ),
     658        'description_description'    => array( __( 'The description is not prominent by default; however, some themes may show it.' ), __( 'The description is not prominent by default; however, some themes may show it.' ) ),
    655659        'edit_item'                  => array( __( 'Edit Tag' ), __( 'Edit Category' ) ),
    656660        'view_item'                  => array( __( 'View Tag' ), __( 'View Category' ) ),
Note: See TracChangeset for help on using the changeset viewer.