Allow inline saves for non-public custom post types. Props jfarthing84. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@13360 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
03b3692832
commit
cc931001f4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user