I’ve started playing around with index.php in wp-admin (don’t worry, I made a back-up copy first!) and put together this code, based on the draft post bits in edit.php and the bit for scheduled entries in index.php
<?php if ($drafts) { ?>
<div>
<h3><?php _e('Drafts:') ?></h3>
<ul>
<?php
$i = 0;
foreach ($other_drafts as $draft) {
if (0 != $i)
echo ', ';
$draft->post_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>";
++$i;
}
?>
</ul>
</div>
<?php endif; ?>
Of course, that hasn’t worked and brings up this error when I try to load the dashboard:
Parse error: parse error, unexpected T_ENDIF in /home/josalm/public_html/wp-admin/index.php on line 99
line 99 refers to <?php endif; ?>
but when I delete that, I get this error message:
Parse error: parse error, unexpected $ in /home/josalm/public_html/wp-admin/index.php on line 192
line 192 is an extra line right at the very bottom of index.php – if I delete that line then it says line 191 instead.
Has anyone got any better suggestions?
Cheers, Jo