mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
Pass draft titles through the_title filter. Props jhodgdon. fixes #3894
git-svn-id: https://develop.svn.wordpress.org/trunk@4966 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e6733adfbc
commit
3e8632161b
@ -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 "<a href='post.php?action=edit&post=$draft->ID' title='" . __('Edit this draft') . "'>$draft->post_title</a>";
|
||||
@ -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 "<a href='post.php?action=edit&post=$draft->ID' title='" . __('Edit this draft') . "'>$draft->post_title</a>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user