WordPress.org

Make WordPress Core

Changeset 5013


Ignore:
Timestamp:
03/10/2007 03:56:35 AM (11 years ago)
Author:
ryan
Message:

Title filtering from jhodgdon. fixes #3926

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r4990 r5013  
    581581
    582582        $cat_name = attribute_escape( $category->cat_name);
     583        $cat_name = apply_filters( 'list_cats', $cat_name, $category );
    583584        $link = '<a href="' . get_category_link( $category->cat_ID ) . '" ';
    584585        if ( $use_desc_for_title == 0 || empty($category->category_description) )
     
    587588            $link .= 'title="' . attribute_escape( apply_filters( 'category_description', $category->category_description, $category )) . '"';
    588589        $link .= '>';
    589         $link .= apply_filters( 'list_cats', $category->cat_name, $category ).'</a>';
     590        $link .= $cat_name . '</a>';
    590591
    591592        if ( (! empty($feed_image)) || (! empty($feed)) ) {
  • trunk/wp-includes/general-template.php

    r5005 r5013  
    583583    if ( $ak_post_titles ) {
    584584        foreach ( $ak_post_titles as $ak_post_title ) {
     585           
     586                $post_title = apply_filters( "the_title", $ak_post_title->post_title );
     587                $post_title = str_replace('"', '&quot;', wptexturize( $post_title ));
     588                               
    585589                if ( empty($ak_titles_for_day['day_'.$ak_post_title->dom]) )
    586590                    $ak_titles_for_day['day_'.$ak_post_title->dom] = '';
    587591                if ( empty($ak_titles_for_day["$ak_post_title->dom"]) ) // first one
    588                     $ak_titles_for_day["$ak_post_title->dom"] = str_replace('"', '&quot;', wptexturize($ak_post_title->post_title));
     592                    $ak_titles_for_day["$ak_post_title->dom"] = $post_title;
    589593                else
    590                     $ak_titles_for_day["$ak_post_title->dom"] .= $ak_title_separator . str_replace('"', '&quot;', wptexturize($ak_post_title->post_title));
     594                    $ak_titles_for_day["$ak_post_title->dom"] .= $ak_title_separator . $post_title;
    591595        }
    592596    }
Note: See TracChangeset for help on using the changeset viewer.