From 4f1a89d21c4e7d8874489febe4e5188b6108e0f9 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Sun, 4 Mar 2007 18:48:19 +0000 Subject: [PATCH] Pass draft titles through the_title filter. Props jhodgdon. fixes #3894 git-svn-id: http://svn.automattic.com/wordpress/trunk@4966 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 6b47fe4a47..76b0473983 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -21,7 +21,7 @@ if ($drafts || $other_drafts) { foreach ($drafts as $draft) { if (0 != $i) echo ', '; - $draft->post_title = stripslashes($draft->post_title); + $draft->post_title = apply_filters('the_title', stripslashes($draft->post_title)); if ($draft->post_title == '') $draft->post_title = sprintf(__('Post #%s'), $draft->ID); echo "$draft->post_title"; @@ -38,7 +38,7 @@ if ($drafts || $other_drafts) { foreach ($other_drafts as $draft) { if (0 != $i) echo ', '; - $draft->post_title = stripslashes($draft->post_title); + $draft->post_title = apply_filters('the_title', stripslashes($draft->post_title)); if ($draft->post_title == '') $draft->post_title = sprintf(__('Post #%s'), $draft->ID); echo "$draft->post_title";