Make WordPress Core


Ignore:
Timestamp:
08/30/2016 08:06:30 PM (10 years ago)
Author:
wonderboymusic
Message:

List Tables: AJAX actions for List Tables do not need to declare global $wp_list_table. List tables on admin screens are in global scope, and they contain hooks that don't pass the the list table as context, hence using globals there so that functions can import them. That problem does not exist in the AJAX actions, which are virtually impossible to hook into as is.

See #37699.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/list-table.php

    r38411 r38455  
    6464 */
    6565function register_column_headers($screen, $columns) {
    66         $wp_list_table = new _WP_List_Table_Compat($screen, $columns);
     66        new _WP_List_Table_Compat( $screen, $columns );
    6767}
    6868
Note: See TracChangeset for help on using the changeset viewer.