Add the filter in display_rows, rather than _display_rows. for 3.1.

git-svn-id: http://svn.automattic.com/wordpress/branches/3.1@17705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-04-26 10:20:04 +00:00
parent b4a7b06241
commit fb4caf3e06
1 changed files with 2 additions and 2 deletions

View File

@ -310,6 +310,8 @@ class WP_Posts_List_Table extends WP_List_Table {
if ( empty( $posts ) )
$posts = $wp_query->posts;
add_filter( 'the_title', 'esc_html' );
if ( $this->hierarchical_display ) {
$this->_display_rows_hierarchical( $posts, $this->get_pagenum(), $per_page );
} else {
@ -320,8 +322,6 @@ class WP_Posts_List_Table extends WP_List_Table {
function _display_rows( $posts ) {
global $post, $mode;
add_filter( 'the_title', 'esc_html' );
// Create array of post IDs.
$post_ids = array();