use unaltered in the get_list_table_* filter
git-svn-id: http://svn.automattic.com/wordpress/trunk@15535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0886891bc3
commit
b9955d5a66
|
@ -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