Use page_rows() for quick edit for all hierarchical post types. fixes #14194 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@15372 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e965180dc1
commit
535275b753
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue