Changeset 6213 for trunk/wp-admin/edit-post-rows.php
- Timestamp:
- 10/09/2007 10:49:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-post-rows.php
r6041 r6213 9 9 </tr> 10 10 </thead> 11 <tbody id="the-list" >11 <tbody id="the-list" class="list:post"> 12 12 <?php 13 $i_post = 0; 13 14 if ( have_posts() ) { 14 15 $bgcolor = ''; 15 16 add_filter('the_title','wp_specialchars'); 16 while (have_posts()) : the_post(); 17 $class = ('alternate' == $class) ? '' : 'alternate'; 17 while (have_posts()) : the_post(); $i_post++; 18 if ( 16 == $i_post ) 19 echo "\t</tbody>\n\t<tbody id='the-extra-list' class='list:post' style='color: red'>\n"; // Hack! 20 $class = ( $i_post > 15 || 'alternate' == $class) ? '' : 'alternate'; 18 21 global $current_user; 19 22 $post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' ); … … 91 94 case 'control_delete': 92 95 ?> 93 <td><?php if ( current_user_can('delete_post',$post->ID) ) { echo "<a href='" . wp_nonce_url("post.php?action=delete&post=$id", 'delete-post_' . $post->ID) . "' class='delete ' onclick=\"return deleteSomething( 'post', " . $id . ", '" . js_escape(sprintf(__("You are about to delete this post '%s'.\n'OK' to delete, 'Cancel' to stop."), get_the_title())) . "' );\">" . __('Delete') . "</a>"; } ?></td>96 <td><?php if ( current_user_can('delete_post',$post->ID) ) { echo "<a href='" . wp_nonce_url("post.php?action=delete&post=$id", 'delete-post_' . $post->ID) . "' class='delete:the-list:post-$post->ID delete'>" . __('Delete') . "</a>"; } ?></td> 94 97 <?php 95 98 break;
Note: See TracChangeset
for help on using the changeset viewer.