Make WordPress Core

Ticket #34577: 34577.2.patch

File 34577.2.patch, 1.5 KB (added by ocean90, 10 years ago)
  • src/wp-admin/includes/ajax-actions.php

     
    15861586 * @global WP_List_Table $wp_list_table
    15871587 */
    15881588function wp_ajax_inline_save() {
    1589         global $wp_list_table;
     1589        global $wp_list_table, $mode;
    15901590
    15911591        check_ajax_referer( 'inlineeditnonce', '_inline_edit' );
    15921592
     
    16591659
    16601660        $wp_list_table = _get_list_table( 'WP_Posts_List_Table', array( 'screen' => $_POST['screen'] ) );
    16611661
     1662        $mode = $_POST['post_view'] === 'excerpt' ? 'excerpt' : 'list';
     1663
    16621664        $level = 0;
    16631665        $request_post = array( get_post( $_POST['post_ID'] ) );
    16641666        $parent = $request_post[0]->post_parent;
  • src/wp-admin/includes/class-wp-posts-list-table.php

     
    490490                 * list table.
    491491                 *
    492492                 * @since 4.4.0
    493                  * 
     493                 *
    494494                 * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
    495495                 */
    496496                do_action( 'manage_posts_extra_tablenav', $which );
     
    647647        }
    648648
    649649        /**
    650          * @global string $mode
    651650         * @param array $posts
    652651         * @param int $level
    653652         */
    654653        private function _display_rows( $posts, $level = 0 ) {
    655                 global $mode;
    656 
    657654                // Create array of post IDs.
    658655                $post_ids = array();
    659656