Changeset 4495 for trunk/wp-admin/index.php
- Timestamp:
- 11/19/2006 07:56:05 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/index.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/index.php
r4484 r4495 47 47 48 48 <ul> 49 <?php 49 <?php 50 50 if ( $comments ) { 51 51 foreach ($comments as $comment) { 52 52 echo '<li>' . sprintf(__('%1$s on %2$s'), get_comment_author_link(), '<a href="'. get_permalink($comment->comment_post_ID) . '#comment-' . $comment->comment_ID . '">' . get_the_title($comment->comment_post_ID) . '</a>'); 53 edit_comment_link(__("Edit"), ' <small>(', ')</small>'); 53 edit_comment_link(__("Edit"), ' <small>(', ')</small>'); 54 54 echo '</li>'; 55 55 } … … 81 81 <?php 82 82 if ( $scheduled = $wpdb->get_results("SELECT ID, post_title, post_date_gmt FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'future' ORDER BY post_date ASC") ) : 83 ?> 83 ?> 84 84 <div> 85 85 <h3><?php _e('Scheduled Entries:') ?></h3> … … 91 91 echo "<li>" . sprintf(__('%1$s in %2$s'), "<a href='post.php?action=edit&post=$post->ID' title='" . __('Edit this post') . "'>$post->post_title</a>", human_time_diff( current_time('timestamp', 1), strtotime($post->post_date_gmt. ' GMT') )) . "</li>"; 92 92 } 93 ?> 93 ?> 94 94 </ul> 95 95 </div> … … 100 100 <?php 101 101 $numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish'"); 102 if (0 < $numposts) $numposts = number_format($numposts); 102 if (0 < $numposts) $numposts = number_format($numposts); 103 103 104 104 $numcomms = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'");
Note: See TracChangeset
for help on using the changeset viewer.