Make WordPress Core

Changeset 52712

Timestamp:
02/11/2022 09:36:23 PM (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.
Merges [52668] to the 5.9 branch.
Fixes #54908.

File:
1 edited

Legend:

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

    r52464 r52712  
    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'               => ,
    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'               => ,
    420420            'show_in_menu'          => false,
    421421            'show_in_rest'          => true,
Note: See TracChangeset for help on using the changeset viewer.