Make WordPress Core


Ignore:
Timestamp:
04/22/2011 06:33:53 PM (14 years ago)
Author:
nacin
Message:

Add the filter in display_rows, rather than _display_rows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-posts-list-table.php

    r17682 r17684  
    311311            $posts = $wp_query->posts;
    312312
     313        add_filter( 'the_title', 'esc_html' );
     314
    313315        if ( $this->hierarchical_display ) {
    314316            $this->_display_rows_hierarchical( $posts, $this->get_pagenum(), $per_page );
     
    320322    function _display_rows( $posts ) {
    321323        global $post, $mode;
    322 
    323         add_filter( 'the_title', 'esc_html' );
    324324
    325325        // Create array of post IDs.
Note: See TracChangeset for help on using the changeset viewer.