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:
scribu 2010-08-26 11:02:51 +00:00
parent 0886891bc3
commit b9955d5a66
1 changed files with 1 additions and 3 deletions

View File

@ -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;