Ticket #34577: 34577.2.patch
File 34577.2.patch, 1.5 KB (added by , 8 years ago) |
---|
-
src/wp-admin/includes/ajax-actions.php
1586 1586 * @global WP_List_Table $wp_list_table 1587 1587 */ 1588 1588 function wp_ajax_inline_save() { 1589 global $wp_list_table ;1589 global $wp_list_table, $mode; 1590 1590 1591 1591 check_ajax_referer( 'inlineeditnonce', '_inline_edit' ); 1592 1592 … … 1659 1659 1660 1660 $wp_list_table = _get_list_table( 'WP_Posts_List_Table', array( 'screen' => $_POST['screen'] ) ); 1661 1661 1662 $mode = $_POST['post_view'] === 'excerpt' ? 'excerpt' : 'list'; 1663 1662 1664 $level = 0; 1663 1665 $request_post = array( get_post( $_POST['post_ID'] ) ); 1664 1666 $parent = $request_post[0]->post_parent; -
src/wp-admin/includes/class-wp-posts-list-table.php
490 490 * list table. 491 491 * 492 492 * @since 4.4.0 493 * 493 * 494 494 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'. 495 495 */ 496 496 do_action( 'manage_posts_extra_tablenav', $which ); … … 647 647 } 648 648 649 649 /** 650 * @global string $mode651 650 * @param array $posts 652 651 * @param int $level 653 652 */ 654 653 private function _display_rows( $posts, $level = 0 ) { 655 global $mode;656 657 654 // Create array of post IDs. 658 655 $post_ids = array(); 659 656