Make WordPress Core


Ignore:
Timestamp:
12/31/2003 10:21:50 PM (22 years ago)
Author:
saxmatt
Message:

Now with default statuses. Drafts on edit page. Fixed bookmarklets, tested in IE and Moz. Slightly tweaked CSS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit.php

    r628 r670  
    4141    <li class="last"><a href="moderation.php">Comments Awaiting Moderation</a></li>
    4242</ul>
    43 
     43<?php
     44get_currentuserinfo();
     45$drafts = $wpdb->get_results("SELECT ID, post_title FROM $tableposts WHERE post_status = 'draft' AND post_author = $user_ID");
     46if ($drafts) {
     47    ?>
     48    <div class="wrap">
     49    <p><strong>Your Drafts:</strong>
     50    <?php
     51    $i = 0;
     52    foreach ($drafts as $draft) {
     53        if (0 != $i)
     54            echo ', ';
     55        $draft->post_title = stripslashes($draft->post_title);
     56        if ($draft->post_title == '')
     57            $draft->post_title = 'Post #'.$draft->ID;
     58        echo "<a href='post.php?action=edit&amp;post=$draft->ID' title='Edit this draft'>$draft->post_title</a>";
     59        ++$i;
     60        }
     61    ?>.</p>
     62    </div>
     63    <?php
     64}
     65?>
    4466<div class="wrap">
    4567<table width="100%">
Note: See TracChangeset for help on using the changeset viewer.