From 774bdc405b0cfd9cb228eae5a01cd32b95deb77c Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 10 Mar 2007 03:56:35 +0000 Subject: [PATCH] Title filtering from jhodgdon. fixes #3926 git-svn-id: http://svn.automattic.com/wordpress/trunk@5013 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/classes.php | 3 ++- wp-includes/general-template.php | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 8c8dcd0dc..5bdeebe8e 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -580,13 +580,14 @@ class Walker_Category extends Walker { extract($args); $cat_name = attribute_escape( $category->cat_name); + $cat_name = apply_filters( 'list_cats', $cat_name, $category ); $link = 'category_description) ) $link .= 'title="' . sprintf(__( 'View all posts filed under %s' ), $cat_name) . '"'; else $link .= 'title="' . attribute_escape( apply_filters( 'category_description', $category->category_description, $category )) . '"'; $link .= '>'; - $link .= apply_filters( 'list_cats', $category->cat_name, $category ).''; + $link .= $cat_name . ''; if ( (! empty($feed_image)) || (! empty($feed)) ) { $link .= ' '; diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 363a320dd..cbfe7045a 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -582,12 +582,16 @@ function get_calendar($initial = true) { ); if ( $ak_post_titles ) { foreach ( $ak_post_titles as $ak_post_title ) { + + $post_title = apply_filters( "the_title", $ak_post_title->post_title ); + $post_title = str_replace('"', '"', wptexturize( $post_title )); + if ( empty($ak_titles_for_day['day_'.$ak_post_title->dom]) ) $ak_titles_for_day['day_'.$ak_post_title->dom] = ''; if ( empty($ak_titles_for_day["$ak_post_title->dom"]) ) // first one - $ak_titles_for_day["$ak_post_title->dom"] = str_replace('"', '"', wptexturize($ak_post_title->post_title)); + $ak_titles_for_day["$ak_post_title->dom"] = $post_title; else - $ak_titles_for_day["$ak_post_title->dom"] .= $ak_title_separator . str_replace('"', '"', wptexturize($ak_post_title->post_title)); + $ak_titles_for_day["$ak_post_title->dom"] .= $ak_title_separator . $post_title; } }