Make WordPress Core


Ignore:
Timestamp:
11/04/2015 09:28:55 PM (9 years ago)
Author:
ocean90
Message:

List Tables: Define the global $mode variable for Quick Edit savings.

Also remove two unused global imports for $mode.

Fixes #34577.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r35382 r35518  
    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' );
     
    16591659
    16601660    $wp_list_table = _get_list_table( 'WP_Posts_List_Table', array( 'screen' => $_POST['screen'] ) );
     1661
     1662    $mode = $_POST['post_view'] === 'excerpt' ? 'excerpt' : 'list';
    16611663
    16621664    $level = 0;
Note: See TracChangeset for help on using the changeset viewer.