use unaltered in the get_list_table_* filter
git-svn-id: https://develop.svn.wordpress.org/trunk@15535 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c7e189fd06
commit
f4f1ee91ac
@ -678,9 +678,7 @@ class WP_List_Table {
|
||||
function get_list_table( $type ) {
|
||||
require_once( ABSPATH . '/wp-admin/includes/default-list-tables.php' );
|
||||
|
||||
$type = strtr( ucwords( strtr( $type, '-', ' ') ), ' ', '_' );
|
||||
|
||||
$class = "WP_{$type}_Table";
|
||||
$class = 'WP_' . strtr( ucwords( strtr( $type, '-', ' ') ), ' ', '_' ) . '_Table';
|
||||
$class = apply_filters( "get_list_table_$type", $class );
|
||||
|
||||
return new $class;
|
||||
|
Loading…
Reference in New Issue
Block a user