[wp-cvs] wordpress/wp-admin edit.php,1.30,1.31

Matthew Mullenweg saxmatt at users.sourceforge.net
Tue Sep 14 10:02:51 UTC 2004


Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19713/wp-admin

Modified Files:
	edit.php 
Log Message:
View other's drafts. Still need author editing on the advanced edit form.

Index: edit.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/edit.php,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** edit.php	30 Aug 2004 23:46:32 -0000	1.30
--- edit.php	14 Sep 2004 10:02:48 -0000	1.31
***************
*** 26,32 ****
      .</p> 
  </div> 
  <?php
! }
! ?> 
  <div class="wrap"> 
  <?php
--- 26,56 ----
      .</p> 
  </div> 
+ <?php } ?>
+ 
  <?php
! if (1 < $user_level) {
! $editable = $wpdb->get_col("SELECT ID FROM $wpdb->users WHERE user_level <= '$user_level' AND ID != $user_ID");
! $editable = join($editable, ',');
! $other_drafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'draft' AND post_author IN ($editable) ");
! if ($other_drafts) {
! 	?> 
! <div class="wrap"> 
!     <p><strong><?php _e('Other&#8217;s Drafts:') ?></strong> 
!     <?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&amp;post=$draft->ID' title='" . __('Edit this draft') . "'>$draft->post_title</a>";
! 		++$i;
! 		}
! 	?> 
!     .</p> 
! </div> 
! <?php } } ?> 
! 
  <div class="wrap"> 
  <?php




More information about the cvs mailing list