Changeset 1239 for trunk/wp-admin/post.php
- Timestamp:
- 05/07/2004 11:56:33 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r1236 r1239 696 696 697 697 if ($user_level > 0) { 698 if ((!$withcomments) && (!$single)) { 699 700 $action = 'post'; 701 get_currentuserinfo(); 702 $drafts = $wpdb->get_results("SELECT ID, post_title FROM $tableposts WHERE post_status = 'draft' AND post_author = $user_ID"); 703 if ($drafts) { 704 ?> 705 <div class="wrap"> 706 <p><strong><?php _e('Your Drafts:') ?></strong> 707 <?php 708 $i = 0; 709 foreach ($drafts as $draft) { 710 if (0 != $i) 711 echo ', '; 712 $draft->post_title = stripslashes($draft->post_title); 713 if ($draft->post_title == '') 714 $draft->post_title = sprintf(__('Post # %s'), $draft->ID); 715 echo "<a href='post.php?action=edit&post=$draft->ID' title='" . __('Edit this draft') . "'>$draft->post_title</a>"; 716 ++$i; 717 } 718 ?>.</p> 719 </div> 720 <?php 721 } 722 //set defaults 723 $post_status = get_settings('default_post_status'); 724 $comment_status = get_settings('default_comment_status'); 725 $ping_status = get_settings('default_ping_status'); 726 $post_pingback = get_settings('default_pingback_flag'); 727 $default_post_cat = get_settings('default_post_category'); 728 729 if (get_settings('advanced_edit')) { 730 include('edit-form-advanced.php'); 731 } else { 732 include('edit-form.php'); 733 } 698 $action = 'post'; 699 get_currentuserinfo(); 700 $drafts = $wpdb->get_results("SELECT ID, post_title FROM $tableposts WHERE post_status = 'draft' AND post_author = $user_ID"); 701 if ($drafts) { 702 ?> 703 <div class="wrap"> 704 <p><strong><?php _e('Your Drafts:') ?></strong> 705 <?php 706 $i = 0; 707 foreach ($drafts as $draft) { 708 if (0 != $i) 709 echo ', '; 710 $draft->post_title = stripslashes($draft->post_title); 711 if ($draft->post_title == '') 712 $draft->post_title = sprintf(__('Post # %s'), $draft->ID); 713 echo "<a href='post.php?action=edit&post=$draft->ID' title='" . __('Edit this draft') . "'>$draft->post_title</a>"; 714 ++$i; 715 } 716 ?>.</p> 717 </div> 718 <?php 719 } 720 //set defaults 721 $post_status = get_settings('default_post_status'); 722 $comment_status = get_settings('default_comment_status'); 723 $ping_status = get_settings('default_ping_status'); 724 $post_pingback = get_settings('default_pingback_flag'); 725 $default_post_cat = get_settings('default_post_category'); 726 727 if (get_settings('advanced_edit')) { 728 include('edit-form-advanced.php'); 729 } else { 730 include('edit-form.php'); 734 731 } 735 732 ?>
Note: See TracChangeset
for help on using the changeset viewer.