mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
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:
parent
60c561889b
commit
d4955c0264
@ -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…
x
Reference in New Issue
Block a user