Make WordPress Core


Ignore:
Timestamp:
02/03/2022 09:01:10 AM (2 years ago)
Author:
audrasjb
Message:

Editor: Remove standard post type UI for templates and template parts.

In [52158] the standard post type UI was added back for templates and template parts, because these features had been temporarily removed from the site editor in the rush to get 5.9 ready for December. Since 5.9 these features were properly added back to the site editor, the show_ui values for these post types should be returned back to false.

Follow-up to [52158].

Props manfcarlo, audrasjb.
Fixes #54908.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r52660 r52668  
    357357            '_builtin'              => true, /* internal use only. don't use this when registering your own post type. */
    358358            'has_archive'           => false,
    359             'show_ui'               => wp_is_block_theme(),
     359            'show_ui'               => false,
    360360            'show_in_menu'          => false,
    361361            'show_in_rest'          => true,
     
    417417            '_builtin'              => true, /* internal use only. don't use this when registering your own post type. */
    418418            'has_archive'           => false,
    419             'show_ui'               => wp_is_block_theme(),
     419            'show_ui'               => false,
    420420            'show_in_menu'          => false,
    421421            'show_in_rest'          => true,
Note: See TracChangeset for help on using the changeset viewer.