diff --git src/wp-includes/post.php src/wp-includes/post.php
index 10f2129c53..2afe28bb96 100644
|
|
|
function _post_type_meta_capabilities( $capabilities = null ) { |
| 1420 | 1420 | * - `items_list_navigation` - Label for the table pagination hidden heading. Default is 'Posts list navigation' / |
| 1421 | 1421 | * 'Pages list navigation'. |
| 1422 | 1422 | * - `items_list` - Label for the table hidden heading. Default is 'Posts list' / 'Pages list'. |
| | 1423 | * - `item_published` - Label used when an item is published. Default is 'Post published.' / 'Page published.' |
| | 1424 | * - `item_published_privately` - Label used when an item is published with private visibility. |
| | 1425 | * Default is 'Post published privately.' / 'Page published privately.' |
| | 1426 | * - `item_reverted_to_draft` - Label used when an item is switched to a draft. |
| | 1427 | * Default is 'Post reverted to draft.' / 'Page reverted to draft.' |
| | 1428 | * - `item_scheduled` - Label used when an item is scheduled for publishing. Default is 'Post scheduled.' / |
| | 1429 | * 'Page scheduled.' |
| | 1430 | * - `item_updated` - Label used when an item is updated. Default is 'Post updated.' / 'Page updated.' |
| 1423 | 1431 | * |
| 1424 | 1432 | * Above, the first default value is for non-hierarchical post types (like posts) |
| 1425 | 1433 | * and the second one is for hierarchical post types (like pages). |
| … |
… |
function _post_type_meta_capabilities( $capabilities = null ) { |
| 1433 | 1441 | * `items_list_navigation`, and `items_list` labels. |
| 1434 | 1442 | * @since 4.6.0 Converted the `$post_type` parameter to accept a WP_Post_Type object. |
| 1435 | 1443 | * @since 4.7.0 Added the `view_items` and `attributes` labels. |
| | 1444 | * @since 5.0.0 Added the `item_published`, `item_published_privately`, `item_reverted_to_draft`, |
| | 1445 | * `item_scheduled`, and `item_updated` labels. |
| 1436 | 1446 | * |
| 1437 | 1447 | * @access private |
| 1438 | 1448 | * |
| … |
… |
function get_post_type_labels( $post_type_object ) { |
| 1465 | 1475 | 'filter_items_list' => array( __( 'Filter posts list' ), __( 'Filter pages list' ) ), |
| 1466 | 1476 | 'items_list_navigation' => array( __( 'Posts list navigation' ), __( 'Pages list navigation' ) ), |
| 1467 | 1477 | 'items_list' => array( __( 'Posts list' ), __( 'Pages list' ) ), |
| | 1478 | 'item_published' => array( __( 'Post published.' ), __( 'Page published.' ) ), |
| | 1479 | 'item_published_privately' => array( __( 'Post published privately.' ), __( 'Page published privately.' ) ), |
| | 1480 | 'item_reverted_to_draft' => array( __( 'Post reverted to draft.' ), __( 'Page reverted to draft.' ) ), |
| | 1481 | 'item_scheduled' => array( __( 'Post scheduled.' ), __( 'Page scheduled.' ) ), |
| | 1482 | 'item_updated' => array( __( 'Post updated.' ), __( 'Page updated.' ) ), |
| 1468 | 1483 | ); |
| 1469 | 1484 | $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; |
| 1470 | 1485 | |