Make WordPress Core

Ticket #3926: general-template-php2.diff

File general-template-php2.diff, 1.2 KB (added by jhodgdon, 18 years ago)

Patch to add filtering to post titles in get_calendar

  • E:/EclipseWork/WordPressDev/wp-includes/general-template.php

     
    571571        );
    572572        if ( $ak_post_titles ) {
    573573                foreach ( $ak_post_titles as $ak_post_title ) {
     574                       
     575                                $post_title = apply_filters( "the_title", $ak_post_title->post_title );
     576                                $post_title = str_replace('"', '"', wptexturize( $post_title ));
     577                                                               
    574578                                if ( empty($ak_titles_for_day['day_'.$ak_post_title->dom]) )
    575579                                        $ak_titles_for_day['day_'.$ak_post_title->dom] = '';
    576580                                if ( empty($ak_titles_for_day["$ak_post_title->dom"]) ) // first one
    577                                         $ak_titles_for_day["$ak_post_title->dom"] = str_replace('"', '"', wptexturize($ak_post_title->post_title));
     581                                        $ak_titles_for_day["$ak_post_title->dom"] = $post_title;
    578582                                else
    579                                         $ak_titles_for_day["$ak_post_title->dom"] .= $ak_title_separator . str_replace('"', '"', wptexturize($ak_post_title->post_title));
     583                                        $ak_titles_for_day["$ak_post_title->dom"] .= $ak_title_separator . $post_title;
    580584                }
    581585        }
    582586