Use page_rows() for quick edit for all hierarchical post types. fixes #14194 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@15372 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-07-07 07:39:14 +00:00
parent 60c561889b
commit d4955c0264

View File

@ -1231,14 +1231,15 @@ case 'inline-save':
// update the post
edit_post();
if ( in_array( $_POST['post_type'], get_post_types( array( 'show_ui' => true ) ) ) ) {
$post = array();
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('public' => true) ) ) ) {
if ( is_post_type_hierarchical( $_POST['post_type'] ) ) {
page_rows( $post );
} else {
$mode = $_POST['post_view'];
$post[] = get_post($_POST['post_ID']);
post_rows($post);
post_rows( $post );
}
}
exit;