Changeset 50527 for trunk/src/wp-includes/post.php
- Timestamp:
- 03/12/2021 01:33:21 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r50505 r50527 1704 1704 * 'Page scheduled.' 1705 1705 * - `item_updated` - Label used when an item is updated. Default is 'Post updated.' / 'Page updated.' 1706 * - `item_link` - Title for a navigation link block variation. Default is 'Post Link' / 'Page Link'. 1707 * - `item_link_description` - Description for a navigation link block variation. Default is 'A link to a post.' / 1708 * 'A link to a page.' 1706 1709 * 1707 1710 * Above, the first default value is for non-hierarchical post types (like posts) … … 1727 1730 */ 1728 1731 function get_post_type_labels( $post_type_object ) { 1729 $nohier_vs_hier_defaults = array(1732 $nohier_vs_hier_defaults = array( 1730 1733 'name' => array( _x( 'Posts', 'post type general name' ), _x( 'Pages', 'post type general name' ) ), 1731 1734 'singular_name' => array( _x( 'Post', 'post type singular name' ), _x( 'Page', 'post type singular name' ) ), … … 1758 1761 'item_scheduled' => array( __( 'Post scheduled.' ), __( 'Page scheduled.' ) ), 1759 1762 'item_updated' => array( __( 'Post updated.' ), __( 'Page updated.' ) ), 1763 'item_link' => array( 1764 _x( 'Post Link', 'navigation link block title' ), 1765 _x( 'Page Link', 'navigation link block title' ), 1766 ), 1767 'item_link_description' => array( 1768 _x( 'A link to a post.', 'navigation link block description' ), 1769 _x( 'A link to a page.', 'navigation link block description' ), 1770 ), 1760 1771 ); 1761 1772 $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
Note: See TracChangeset
for help on using the changeset viewer.