mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-12 13:44:21 +01:00
Posts: In wp_ajax_inline_save()
, do not apply level for non-hierarchical post types.
Props Offereins. Fixes #35010. Built from https://develop.svn.wordpress.org/trunk@37913 git-svn-id: http://core.svn.wordpress.org/trunk@37854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
809ad6e429
commit
0b7b8981aa
@ -1689,6 +1689,7 @@ function wp_ajax_inline_save() {
|
|||||||
$mode = $_POST['post_view'] === 'excerpt' ? 'excerpt' : 'list';
|
$mode = $_POST['post_view'] === 'excerpt' ? 'excerpt' : 'list';
|
||||||
|
|
||||||
$level = 0;
|
$level = 0;
|
||||||
|
if ( is_post_type_hierarchical( $wp_list_table->screen->post_type ) ) {
|
||||||
$request_post = array( get_post( $_POST['post_ID'] ) );
|
$request_post = array( get_post( $_POST['post_ID'] ) );
|
||||||
$parent = $request_post[0]->post_parent;
|
$parent = $request_post[0]->post_parent;
|
||||||
|
|
||||||
@ -1697,6 +1698,7 @@ function wp_ajax_inline_save() {
|
|||||||
$parent = $parent_post->post_parent;
|
$parent = $parent_post->post_parent;
|
||||||
$level++;
|
$level++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$wp_list_table->display_rows( array( get_post( $_POST['post_ID'] ) ), $level );
|
$wp_list_table->display_rows( array( get_post( $_POST['post_ID'] ) ), $level );
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.6-alpha-37912';
|
$wp_version = '4.6-alpha-37913';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user