Make WordPress Core

Changeset 51014


Ignore:
Timestamp:
05/25/2021 10:27:20 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Block Editor: Declare the wp_template post type as built-in.

Remove redundant show_in_admin_bar property, which defaults to the value of show_in_menu.

Follow-up to [51003].

See #53176.

File:
1 edited

Legend:

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

    r51003 r51014  
    337337            'description'           => __( 'Templates to include in your theme.' ),
    338338            'public'                => false,
     339            '_builtin'              => true, /* internal use only. don't use this when registering your own post type. */
    339340            'has_archive'           => false,
    340341            'show_ui'               => false,
    341342            'show_in_menu'          => false,
    342             'show_in_admin_bar'     => false,
    343343            'show_in_rest'          => true,
    344344            'rewrite'               => false,
Note: See TracChangeset for help on using the changeset viewer.