Changeset 52163 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 11/15/2021 04:43:29 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r52131 r52163 590 590 * @since 5.7.0 Added the `filter_by_item` label. 591 591 * @since 5.8.0 Added the `item_link` and `item_link_description` labels. 592 * @since 5.9.0 Added the `name_field_description`, `slug_field_description`, 593 * `parent_field_description`, and `desc_field_description` labels. 592 594 * 593 595 * @param WP_Taxonomy $tax Taxonomy object. … … 606 608 * 'Parent Category'. 607 609 * @type string $parent_item_colon The same as `parent_item`, but with colon `:` in the end. 610 * @type string $name_field_description Description for the Name field on Edit Tags screen. 611 * Default 'The name is how it appears on your site'. 612 * @type string $slug_field_description Description for the Slug field on Edit Tags screen. 613 * Default 'The “slug” is the URL-friendly version 614 * of the name. It is usually all lowercase and contains 615 * only letters, numbers, and hyphens'. 616 * @type string $parent_field_description Description for the Parent field on Edit Tags screen. 617 * Default 'Assign a parent term to create a hierarchy. 618 * The term Jazz, for example, would be the parent 619 * of Bebop and Big Band'. 620 * @type string $desc_field_description Description for the Description field on Edit Tags screen. 621 * Default 'The description is not prominent by default; 622 * however, some themes may show it'. 608 623 * @type string $edit_item Default 'Edit Tag'/'Edit Category'. 609 624 * @type string $view_item Default 'View Tag'/'View Category'. … … 645 660 } 646 661 662 $name_field_description = __( 'The name is how it appears on your site.' ); 663 $slug_field_description = __( 'The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.' ); 664 $parent_field_description = __( 'Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.' ); 665 $desc_field_description = __( 'The description is not prominent by default; however, some themes may show it.' ); 666 647 667 $nohier_vs_hier_defaults = array( 648 668 '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.' ) ),650 669 'singular_name' => array( _x( 'Tag', 'taxonomy singular name' ), _x( 'Category', 'taxonomy singular name' ) ), 651 670 'search_items' => array( __( 'Search Tags' ), __( 'Search Categories' ) ), … … 654 673 'parent_item' => array( null, __( 'Parent Category' ) ), 655 674 '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.' ) ), 675 'name_field_description' => array( $name_field_description, $name_field_description ), 676 'slug_field_description' => array( $slug_field_description, $slug_field_description ), 677 'parent_field_description' => array( null, $parent_field_description ), 678 'desc_field_description' => array( $desc_field_description, $desc_field_description ), 659 679 'edit_item' => array( __( 'Edit Tag' ), __( 'Edit Category' ) ), 660 680 'view_item' => array( __( 'View Tag' ), __( 'View Category' ) ),
Note: See TracChangeset
for help on using the changeset viewer.