mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 04:25:07 +00:00
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
This commit is contained in:
parent
1fd8b676c4
commit
4f1a89d21c
@ -21,7 +21,7 @@ if ($drafts || $other_drafts) {
|
|||||||
foreach ($drafts as $draft) {
|
foreach ($drafts as $draft) {
|
||||||
if (0 != $i)
|
if (0 != $i)
|
||||||
echo ', ';
|
echo ', ';
|
||||||
$draft->post_title = stripslashes($draft->post_title);
|
$draft->post_title = apply_filters('the_title', stripslashes($draft->post_title));
|
||||||
if ($draft->post_title == '')
|
if ($draft->post_title == '')
|
||||||
$draft->post_title = sprintf(__('Post #%s'), $draft->ID);
|
$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>";
|
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) {
|
foreach ($other_drafts as $draft) {
|
||||||
if (0 != $i)
|
if (0 != $i)
|
||||||
echo ', ';
|
echo ', ';
|
||||||
$draft->post_title = stripslashes($draft->post_title);
|
$draft->post_title = apply_filters('the_title', stripslashes($draft->post_title));
|
||||||
if ($draft->post_title == '')
|
if ($draft->post_title == '')
|
||||||
$draft->post_title = sprintf(__('Post #%s'), $draft->ID);
|
$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>";
|
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