Allow inline saves for non-public custom post types. Props jfarthing84. see #9674

git-svn-id: http://svn.automattic.com/wordpress/trunk@13360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-02-24 05:45:38 +00:00
parent fc6d49427e
commit 911a6b1c09

View File

@ -1112,7 +1112,7 @@ case 'inline-save':
if ( 'page' == $_POST['post_type'] ) {
$post[] = get_post($_POST['post_ID']);
page_rows($post);
} elseif ( 'post' == $_POST['post_type'] || in_array($_POST['post_type'], get_post_types( array('show_ui' => true) ) ) ) {
} elseif ( 'post' == $_POST['post_type'] || in_array($_POST['post_type'], get_post_types( array('public' => true) ) ) ) {
$mode = $_POST['post_view'];
$post[] = get_post($_POST['post_ID']);
post_rows($post);