mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Editor: Fix how the Site Editor is linked to
- Add 'Edit site' to the top admin bar. - Link to the Template and Template Part CPTs. - Add deep link to the Global Styles UI. Follows [52069]. See #54337. git-svn-id: https://develop.svn.wordpress.org/trunk@52158 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -340,7 +340,7 @@ function create_initial_post_types() {
|
||||
'new_item' => __( 'New Template' ),
|
||||
'edit_item' => __( 'Edit Template' ),
|
||||
'view_item' => __( 'View Template' ),
|
||||
'all_items' => __( 'All Templates' ),
|
||||
'all_items' => __( 'Templates' ),
|
||||
'search_items' => __( 'Search Templates' ),
|
||||
'parent_item_colon' => __( 'Parent Template:' ),
|
||||
'not_found' => __( 'No templates found.' ),
|
||||
@@ -356,8 +356,8 @@ function create_initial_post_types() {
|
||||
'public' => false,
|
||||
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */
|
||||
'has_archive' => false,
|
||||
'show_ui' => false,
|
||||
'show_in_menu' => false,
|
||||
'show_ui' => wp_is_block_template_theme(),
|
||||
'show_in_menu' => 'themes.php',
|
||||
'show_in_rest' => true,
|
||||
'rewrite' => false,
|
||||
'rest_base' => 'templates',
|
||||
@@ -399,7 +399,7 @@ function create_initial_post_types() {
|
||||
'new_item' => __( 'New Template Part' ),
|
||||
'edit_item' => __( 'Edit Template Part' ),
|
||||
'view_item' => __( 'View Template Part' ),
|
||||
'all_items' => __( 'All Template Parts' ),
|
||||
'all_items' => __( 'Template Parts' ),
|
||||
'search_items' => __( 'Search Template Parts' ),
|
||||
'parent_item_colon' => __( 'Parent Template Part:' ),
|
||||
'not_found' => __( 'No template parts found.' ),
|
||||
@@ -415,8 +415,8 @@ function create_initial_post_types() {
|
||||
'public' => false,
|
||||
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */
|
||||
'has_archive' => false,
|
||||
'show_ui' => false,
|
||||
'show_in_menu' => false,
|
||||
'show_ui' => wp_is_block_template_theme(),
|
||||
'show_in_menu' => 'themes.php',
|
||||
'show_in_rest' => true,
|
||||
'rewrite' => false,
|
||||
'rest_base' => 'template-parts',
|
||||
|
||||
Reference in New Issue
Block a user