Changeset 52069 for trunk/src/wp-includes/post.php
- Timestamp:
- 11/09/2021 02:15:23 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r52067 r52069 444 444 'map_meta_cap' => true, 445 445 'supports' => array( 446 'title', 447 'editor', 448 'revisions', 449 ), 450 ) 451 ); 452 453 register_post_type( 454 'wp_navigation', 455 array( 456 'labels' => array( 457 'name' => __( 'Navigation Menus', 'gutenberg' ), 458 'singular_name' => __( 'Navigation Menu', 'gutenberg' ), 459 'menu_name' => _x( 'Navigation Menus', 'Admin Menu text', 'gutenberg' ), 460 'add_new' => _x( 'Add New', 'Navigation Menu', 'gutenberg' ), 461 'add_new_item' => __( 'Add New Navigation Menu', 'gutenberg' ), 462 'new_item' => __( 'New Navigation Menu', 'gutenberg' ), 463 'edit_item' => __( 'Edit Navigation Menu', 'gutenberg' ), 464 'view_item' => __( 'View Navigation Menu', 'gutenberg' ), 465 'all_items' => __( 'All Navigation Menus', 'gutenberg' ), 466 'search_items' => __( 'Search Navigation Menus', 'gutenberg' ), 467 'parent_item_colon' => __( 'Parent Navigation Menu:', 'gutenberg' ), 468 'not_found' => __( 'No Navigation Menu found.', 'gutenberg' ), 469 'not_found_in_trash' => __( 'No Navigation Menu found in Trash.', 'gutenberg' ), 470 'archives' => __( 'Navigation Menu archives', 'gutenberg' ), 471 'insert_into_item' => __( 'Insert into Navigation Menu', 'gutenberg' ), 472 'uploaded_to_this_item' => __( 'Uploaded to this Navigation Menu', 'gutenberg' ), 473 // Some of these are a bit weird, what are they for? 474 'filter_items_list' => __( 'Filter Navigation Menu list', 'gutenberg' ), 475 'items_list_navigation' => __( 'Navigation Menus list navigation', 'gutenberg' ), 476 'items_list' => __( 'Navigation Menus list', 'gutenberg' ), 477 ), 478 'description' => __( 'Navigation menus.', 'gutenberg' ), 479 'public' => false, 480 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 481 'has_archive' => false, 482 'show_ui' => false, 483 'show_in_menu' => 'themes.php', 484 'show_in_admin_bar' => false, 485 'show_in_rest' => true, 486 'rewrite' => false, 487 'map_meta_cap' => true, 488 'rest_base' => 'navigation', 489 'rest_controller_class' => 'WP_REST_Posts_Controller', 490 'supports' => array( 446 491 'title', 447 492 'editor',
Note: See TracChangeset
for help on using the changeset viewer.