diff --git a/trunk/wp-admin/includes/ajax-actions.php b/trunk/wp-admin/includes/ajax-actions.php
index 29a11fc..5c73ec8 100644
|
a
|
b
|
function wp_ajax_inline_save() { |
| 1662 | 1662 | $mode = $_POST['post_view'] === 'excerpt' ? 'excerpt' : 'list'; |
| 1663 | 1663 | |
| 1664 | 1664 | $level = 0; |
| 1665 | | $request_post = array( get_post( $_POST['post_ID'] ) ); |
| 1666 | | $parent = $request_post[0]->post_parent; |
| 1667 | 1665 | |
| 1668 | | while ( $parent > 0 ) { |
| 1669 | | $parent_post = get_post( $parent ); |
| 1670 | | $parent = $parent_post->post_parent; |
| 1671 | | $level++; |
| | 1666 | if ( $wp_list_table->hierarchical_display ) { |
| | 1667 | $request_post = array( get_post( $_POST['post_ID'] ) ); |
| | 1668 | $parent = $request_post[0]->post_parent; |
| | 1669 | |
| | 1670 | while ( $parent > 0 ) { |
| | 1671 | $parent_post = get_post( $parent ); |
| | 1672 | $parent = $parent_post->post_parent; |
| | 1673 | $level++; |
| | 1674 | } |
| 1672 | 1675 | } |
| 1673 | 1676 | |
| 1674 | 1677 | $wp_list_table->display_rows( array( get_post( $_POST['post_ID'] ) ), $level ); |