Changeset 1647 for trunk/wp-admin/edit.php
- Timestamp:
- 09/14/2004 10:02:48 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r1579 r1647 26 26 .</p> 27 27 </div> 28 <?php 29 } 30 ?> 28 <?php } ?> 29 30 <?php 31 if (1 < $user_level) { 32 $editable = $wpdb->get_col("SELECT ID FROM $wpdb->users WHERE user_level <= '$user_level' AND ID != $user_ID"); 33 $editable = join($editable, ','); 34 $other_drafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'draft' AND post_author IN ($editable) "); 35 if ($other_drafts) { 36 ?> 37 <div class="wrap"> 38 <p><strong><?php _e('Other’s Drafts:') ?></strong> 39 <?php 40 $i = 0; 41 foreach ($other_drafts as $draft) { 42 if (0 != $i) 43 echo ', '; 44 $draft->post_title = stripslashes($draft->post_title); 45 if ($draft->post_title == '') 46 $draft->post_title = sprintf(__('Post #%s'), $draft->ID); 47 echo "<a href='post.php?action=edit&post=$draft->ID' title='" . __('Edit this draft') . "'>$draft->post_title</a>"; 48 ++$i; 49 } 50 ?> 51 .</p> 52 </div> 53 <?php } } ?> 54 31 55 <div class="wrap"> 32 56 <?php
Note: See TracChangeset
for help on using the changeset viewer.