[wp-cvs] wordpress/wp-admin admin-functions.php, 1.34, 1.35 edit-comments.php, 1.27, 1.28 edit.php, 1.24, 1.25

Matthew Mullenweg saxmatt at users.sourceforge.net
Tue Jul 6 18:14:45 UTC 2004


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

Modified Files:
	admin-functions.php edit-comments.php edit.php 
Log Message:
http://mosquito.wordpress.org/bug_view_page.php?bug_id=0000145 and a few other hardcoded styles.

Index: edit-comments.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/edit-comments.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** edit-comments.php	15 Jun 2004 23:24:35 -0000	1.27
--- edit-comments.php	6 Jul 2004 18:14:42 -0000	1.28
***************
*** 121,127 ****
  		foreach ($comments as $comment) {
  		$authordata = get_userdata($wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $comment->comment_post_ID"));
! 		$bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee';
  ?>
!   <tr style='background-color: <?php echo $bgcolor; ?>'>
      <td><?php if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) { ?><input type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" /><?php } ?></td>
      <td><?php comment_author_link() ?></td>
--- 121,127 ----
  		foreach ($comments as $comment) {
  		$authordata = get_userdata($wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $comment->comment_post_ID"));
! 		$class = ('alternate' == $class) ? '' : 'alternate';
  ?>
!   <tr class='<?php echo $class; ?>'>
      <td><?php if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) { ?><input type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" /><?php } ?></td>
      <td><?php comment_author_link() ?></td>

Index: admin-functions.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/admin-functions.php,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** admin-functions.php	30 Jun 2004 02:02:49 -0000	1.34
--- admin-functions.php	6 Jul 2004 18:14:42 -0000	1.35
***************
*** 118,123 ****
  				$pad = str_repeat('&#8212; ', $level);
  
! 				$bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee';
! 				echo "<tr style='background-color: $bgcolor'><th scope='row'>$category->cat_ID</th><td>$pad $category->cat_name</td>
  				<td>$category->category_description</td>
  				<td>$count</td>
--- 118,123 ----
  				$pad = str_repeat('&#8212; ', $level);
  
! 				$class = ('alternate' == $class) ? '' : 'alternate';
! 				echo "<tr class='$class'><th scope='row'>$category->cat_ID</th><td>$pad $category->cat_name</td>
  				<td>$category->category_description</td>
  				<td>$count</td>

Index: edit.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/edit.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** edit.php	15 Jun 2004 23:24:35 -0000	1.24
--- edit.php	6 Jul 2004 18:14:42 -0000	1.25
***************
*** 95,101 ****
  $bgcolor = '';
  foreach ($posts as $post) { start_wp();
! $bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee';
  ?> 
!   <tr style='background-color: <?php echo $bgcolor; ?>'> 
      <th scope="row"><?php echo $id ?></th> 
      <td><?php the_time('Y-m-d \<\b\r \/\> g:i:s a'); ?></td> 
--- 95,101 ----
  $bgcolor = '';
  foreach ($posts as $post) { start_wp();
! $class = ('alternate' == $class) ? '' : 'alternate';
  ?> 
!   <tr class='<?php echo $class; ?>'> 
      <th scope="row"><?php echo $id ?></th> 
      <td><?php the_time('Y-m-d \<\b\r \/\> g:i:s a'); ?></td> 




More information about the cvs mailing list