From b9955d5a6617f672952a65dc84b9769880ef10c2 Mon Sep 17 00:00:00 2001 From: scribu Date: Thu, 26 Aug 2010 11:02:51 +0000 Subject: [PATCH] use unaltered in the get_list_table_* filter git-svn-id: http://svn.automattic.com/wordpress/trunk@15535 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/list-table.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wp-admin/includes/list-table.php b/wp-admin/includes/list-table.php index 6c5f8e20e2..7a393ca75e 100644 --- a/wp-admin/includes/list-table.php +++ b/wp-admin/includes/list-table.php @@ -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;