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: http://svn.automattic.com/wordpress/trunk@14713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2010-05-17 16:39:36 +00:00
parent 72d07941c7
commit f0076eed1c
5 changed files with 4 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ require_once('./admin.php');
if ( !isset($_GET['post_type']) )
$post_type = 'post';
elseif ( in_array( $_GET['post_type'], get_post_types( array('show_ui' => true ) ) ) || in_array( $_GET['post_type'], array( 'post', 'page' ) ) )
elseif ( in_array( $_GET['post_type'], get_post_types( array('show_ui' => true ) ) ) )
$post_type = $_GET['post_type'];
else
wp_die( __('Invalid post type') );