mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Set show_ui to true for post and page. Exclude _builtin = true from areas where we need to special case builtin types. fixes #13403
git-svn-id: https://develop.svn.wordpress.org/trunk@14713 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
function create_initial_post_types() {
|
||||
register_post_type( 'post', array(
|
||||
'public' => true,
|
||||
'show_ui' => false,
|
||||
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */
|
||||
'_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */
|
||||
'capability_type' => 'post',
|
||||
@@ -29,7 +28,6 @@ function create_initial_post_types() {
|
||||
|
||||
register_post_type( 'page', array(
|
||||
'public' => true,
|
||||
'show_ui' => false,
|
||||
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */
|
||||
'_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */
|
||||
'capability_type' => 'page',
|
||||
@@ -74,7 +72,6 @@ function create_initial_post_types() {
|
||||
'singular_name' => __( 'Navigation Menu Item' ),
|
||||
),
|
||||
'public' => false,
|
||||
'show_ui' => false,
|
||||
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */
|
||||
'capability_type' => 'post',
|
||||
'hierarchical' => false,
|
||||
|
||||
Reference in New Issue
Block a user