mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Add the filter in display_rows, rather than _display_rows.
git-svn-id: https://develop.svn.wordpress.org/trunk@17684 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user