Make WordPress Core

Ticket #4050: general-template-php.diff

File general-template-php.diff, 647 bytes (added by jhodgdon, 20 years ago)

Add filter to post title in wp_get_archives

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

     
    425425                                        $url  = get_permalink($arcresult);
    426426                                        $arc_title = $arcresult->post_title;
    427427                                        if ( $arc_title )
    428                                                 $text = strip_tags($arc_title);
     428                                                $text = strip_tags(apply_filters('the_title', $arc_title));
    429429                                        else
    430430                                                $text = $arcresult->ID;
    431431                                        echo get_archives_link($url, $text, $format, $before, $after);