Make WordPress Core

Changeset 17705


Ignore:
Timestamp:
04/26/2011 10:20:04 AM (14 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

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

    r17704 r17705  
    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.