mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01: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:
parent
738458cab6
commit
e312fa6050
@ -310,6 +310,8 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||||||
if ( empty( $posts ) )
|
if ( empty( $posts ) )
|
||||||
$posts = $wp_query->posts;
|
$posts = $wp_query->posts;
|
||||||
|
|
||||||
|
add_filter( 'the_title', 'esc_html' );
|
||||||
|
|
||||||
if ( $this->hierarchical_display ) {
|
if ( $this->hierarchical_display ) {
|
||||||
$this->_display_rows_hierarchical( $posts, $this->get_pagenum(), $per_page );
|
$this->_display_rows_hierarchical( $posts, $this->get_pagenum(), $per_page );
|
||||||
} else {
|
} else {
|
||||||
@ -320,8 +322,6 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||||||
function _display_rows( $posts ) {
|
function _display_rows( $posts ) {
|
||||||
global $post, $mode;
|
global $post, $mode;
|
||||||
|
|
||||||
add_filter( 'the_title', 'esc_html' );
|
|
||||||
|
|
||||||
// Create array of post IDs.
|
// Create array of post IDs.
|
||||||
$post_ids = array();
|
$post_ids = array();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user