Changeset 2701 for trunk/wp-admin/index.php
- Timestamp:
- 07/08/2005 10:59:15 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/index.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/index.php
r2570 r2701 52 52 <div> 53 53 <h3><?php _e('Comments'); ?> <a href="edit-comments.php" title="<?php _e('More comments...'); ?>">»</a></h3> 54 55 <?php 56 if ( $numcomments = $wpdb->get_var("SELECT COUNT(*) FROM $tablecomments WHERE comment_approved = '0'") ) : 57 ?> 58 <p><strong><a href="moderation.php"><?php echo sprintf(__('Comments in moderation (%s)'), number_format($numcomments) ); ?> »</a></strong></p> 59 <?php endif; ?> 60 </div> 61 62 <?php endif; ?> 63 54 64 <ul> 55 65 <?php … … 61 71 ?> 62 72 </ul> 63 <?php64 if ( $numcomments = $wpdb->get_var("SELECT COUNT(*) FROM $tablecomments WHERE comment_approved = '0'") ) :65 ?>66 <p><strong><a href="moderation.php"><?php echo sprintf(__('There are comments in moderation (%s)'), number_format($numcomments) ); ?> »</a></strong></p>67 <?php endif; ?>68 </div>69 70 <?php endif; ?>71 73 72 74 <div> … … 147 149 </div> 148 150 </div> 149 <?php150 $drafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'draft' AND post_author = $user_ID");151 if ($drafts) {152 ?>153 <div class="wrap">154 151 155 <p><strong><?php _e('Your Drafts:') ?></strong>156 <?php157 $i = 0;158 foreach ($drafts as $draft) {159 if (0 != $i)160 echo ', ';161 $draft->post_title = stripslashes($draft->post_title);162 if ($draft->post_title == '')163 $draft->post_title = sprintf(__('Post #%s'), $draft->ID);164 echo "<a href='post.php?action=edit&post=$draft->ID' title='" . __('Edit this draft') . "'>$draft->post_title</a>";165 ++$i;166 }167 ?>168 .</p>169 </div>170 <?php } ?>171 152 <?php 172 153 require('./admin-footer.php');
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)