From 5f29ef7e7bbc00018a8c1be8c5304f79a4abdfce Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 22 Apr 2011 18:33:53 +0000 Subject: [PATCH] Add the filter in display_rows, rather than _display_rows. git-svn-id: http://svn.automattic.com/wordpress/trunk@17684 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-posts-list-table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index 6a8fb472bf..c1b4c34415 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -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();