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:
scribu 2010-08-26 11:02:51 +00:00
parent c7e189fd06
commit f4f1ee91ac
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;