- Timestamp:
- 12/13/2018 09:57:00 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43744
- Property svn:mergeinfo changed
-
trunk/src/wp-includes/post.php
r43982 r44110 1527 1527 * 'Pages list navigation'. 1528 1528 * - `items_list` - Label for the table hidden heading. Default is 'Posts list' / 'Pages list'. 1529 * - `item_published` - Label used when an item is published. Default is 'Post published.' / 'Page published.' 1530 * - `item_published_privately` - Label used when an item is published with private visibility. 1531 * Default is 'Post published privately.' / 'Page published privately.' 1532 * - `item_reverted_to_draft` - Label used when an item is switched to a draft. 1533 * Default is 'Post reverted to draft.' / 'Page reverted to draft.' 1534 * - `item_scheduled` - Label used when an item is scheduled for publishing. Default is 'Post scheduled.' / 1535 * 'Page scheduled.' 1536 * - `item_updated` - Label used when an item is updated. Default is 'Post updated.' / 'Page updated.' 1529 1537 * 1530 1538 * Above, the first default value is for non-hierarchical post types (like posts) … … 1540 1548 * @since 4.6.0 Converted the `$post_type` parameter to accept a `WP_Post_Type` object. 1541 1549 * @since 4.7.0 Added the `view_items` and `attributes` labels. 1550 * @since 5.0.0 Added the `item_published`, `item_published_privately`, `item_reverted_to_draft`, 1551 * `item_scheduled`, and `item_updated` labels. 1542 1552 * 1543 1553 * @access private … … 1548 1558 function get_post_type_labels( $post_type_object ) { 1549 1559 $nohier_vs_hier_defaults = array( 1550 'name' => array( _x( 'Posts', 'post type general name' ), _x( 'Pages', 'post type general name' ) ), 1551 'singular_name' => array( _x( 'Post', 'post type singular name' ), _x( 'Page', 'post type singular name' ) ), 1552 'add_new' => array( _x( 'Add New', 'post' ), _x( 'Add New', 'page' ) ), 1553 'add_new_item' => array( __( 'Add New Post' ), __( 'Add New Page' ) ), 1554 'edit_item' => array( __( 'Edit Post' ), __( 'Edit Page' ) ), 1555 'new_item' => array( __( 'New Post' ), __( 'New Page' ) ), 1556 'view_item' => array( __( 'View Post' ), __( 'View Page' ) ), 1557 'view_items' => array( __( 'View Posts' ), __( 'View Pages' ) ), 1558 'search_items' => array( __( 'Search Posts' ), __( 'Search Pages' ) ), 1559 'not_found' => array( __( 'No posts found.' ), __( 'No pages found.' ) ), 1560 'not_found_in_trash' => array( __( 'No posts found in Trash.' ), __( 'No pages found in Trash.' ) ), 1561 'parent_item_colon' => array( null, __( 'Parent Page:' ) ), 1562 'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) ), 1563 'archives' => array( __( 'Post Archives' ), __( 'Page Archives' ) ), 1564 'attributes' => array( __( 'Post Attributes' ), __( 'Page Attributes' ) ), 1565 'insert_into_item' => array( __( 'Insert into post' ), __( 'Insert into page' ) ), 1566 'uploaded_to_this_item' => array( __( 'Uploaded to this post' ), __( 'Uploaded to this page' ) ), 1567 'featured_image' => array( _x( 'Featured Image', 'post' ), _x( 'Featured Image', 'page' ) ), 1568 'set_featured_image' => array( _x( 'Set featured image', 'post' ), _x( 'Set featured image', 'page' ) ), 1569 'remove_featured_image' => array( _x( 'Remove featured image', 'post' ), _x( 'Remove featured image', 'page' ) ), 1570 'use_featured_image' => array( _x( 'Use as featured image', 'post' ), _x( 'Use as featured image', 'page' ) ), 1571 'filter_items_list' => array( __( 'Filter posts list' ), __( 'Filter pages list' ) ), 1572 'items_list_navigation' => array( __( 'Posts list navigation' ), __( 'Pages list navigation' ) ), 1573 'items_list' => array( __( 'Posts list' ), __( 'Pages list' ) ), 1560 'name' => array( _x( 'Posts', 'post type general name' ), _x( 'Pages', 'post type general name' ) ), 1561 'singular_name' => array( _x( 'Post', 'post type singular name' ), _x( 'Page', 'post type singular name' ) ), 1562 'add_new' => array( _x( 'Add New', 'post' ), _x( 'Add New', 'page' ) ), 1563 'add_new_item' => array( __( 'Add New Post' ), __( 'Add New Page' ) ), 1564 'edit_item' => array( __( 'Edit Post' ), __( 'Edit Page' ) ), 1565 'new_item' => array( __( 'New Post' ), __( 'New Page' ) ), 1566 'view_item' => array( __( 'View Post' ), __( 'View Page' ) ), 1567 'view_items' => array( __( 'View Posts' ), __( 'View Pages' ) ), 1568 'search_items' => array( __( 'Search Posts' ), __( 'Search Pages' ) ), 1569 'not_found' => array( __( 'No posts found.' ), __( 'No pages found.' ) ), 1570 'not_found_in_trash' => array( __( 'No posts found in Trash.' ), __( 'No pages found in Trash.' ) ), 1571 'parent_item_colon' => array( null, __( 'Parent Page:' ) ), 1572 'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) ), 1573 'archives' => array( __( 'Post Archives' ), __( 'Page Archives' ) ), 1574 'attributes' => array( __( 'Post Attributes' ), __( 'Page Attributes' ) ), 1575 'insert_into_item' => array( __( 'Insert into post' ), __( 'Insert into page' ) ), 1576 'uploaded_to_this_item' => array( __( 'Uploaded to this post' ), __( 'Uploaded to this page' ) ), 1577 'featured_image' => array( _x( 'Featured Image', 'post' ), _x( 'Featured Image', 'page' ) ), 1578 'set_featured_image' => array( _x( 'Set featured image', 'post' ), _x( 'Set featured image', 'page' ) ), 1579 'remove_featured_image' => array( _x( 'Remove featured image', 'post' ), _x( 'Remove featured image', 'page' ) ), 1580 'use_featured_image' => array( _x( 'Use as featured image', 'post' ), _x( 'Use as featured image', 'page' ) ), 1581 'filter_items_list' => array( __( 'Filter posts list' ), __( 'Filter pages list' ) ), 1582 'items_list_navigation' => array( __( 'Posts list navigation' ), __( 'Pages list navigation' ) ), 1583 'items_list' => array( __( 'Posts list' ), __( 'Pages list' ) ), 1584 'item_published' => array( __( 'Post published.' ), __( 'Page published.' ) ), 1585 'item_published_privately' => array( __( 'Post published privately.' ), __( 'Page published privately.' ) ), 1586 'item_reverted_to_draft' => array( __( 'Post reverted to draft.' ), __( 'Page reverted to draft.' ) ), 1587 'item_scheduled' => array( __( 'Post scheduled.' ), __( 'Page scheduled.' ) ), 1588 'item_updated' => array( __( 'Post updated.' ), __( 'Page updated.' ) ), 1574 1589 ); 1575 1590 $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
Note: See TracChangeset
for help on using the changeset viewer.