Ticket #8438: at_a_glance_link_change.diff
| File at_a_glance_link_change.diff, 4.1 KB (added by , 18 years ago) |
|---|
-
wp-admin/includes/dashboard.php
186 186 else 187 187 $text = $num; 188 188 echo '<td class="first b b-posts">' . $text . '</td>'; 189 echo '<td class="t posts"> ' . __ngettext( 'Post', 'Posts', intval($num_posts->publish) ) . '</td>';189 echo '<td class="t posts"><a href="edit.php">' . __ngettext( 'Post', 'Posts', intval($num_posts->publish) ) . '</a></td>'; 190 190 /* TODO: Show status breakdown on hover 191 191 if ( $can_edit_pages && !empty($num_pages->publish) ) { // how many pages is not exposed in feeds. Don't show if !current_user_can 192 192 $post_type_texts[] = '<a href="edit-pages.php">'.sprintf( __ngettext( '%s page', '%s pages', $num_pages->publish ), number_format_i18n( $num_pages->publish ) ).'</a>'; … … 209 209 if ( current_user_can( 'moderate_comments' ) ) 210 210 $num = "<a href='edit-comments.php'>$num</a>"; 211 211 echo '<td class="b b-comments">'.$num.'</td>'; 212 echo '<td class="last t comments"> ' . __ngettext( 'Comment', 'Comments', $num_comm->total_comments ) . '</td>';212 echo '<td class="last t comments"><a href="edit-comments.php">' . __ngettext( 'Comment', 'Comments', $num_comm->total_comments ) . '</a></td>'; 213 213 214 214 echo '</tr><tr>'; 215 215 … … 218 218 if ( current_user_can( 'edit_pages' ) ) 219 219 $num = "<a href='edit-pages.php'>$num</a>"; 220 220 echo '<td class="first b b_pages">'.$num.'</td>'; 221 echo '<td class="t pages"> ' . __ngettext( 'Page', 'Pages', $num_pages->publish ) . '</td>';221 echo '<td class="t pages"><a href="edit-pages.php">' . __ngettext( 'Page', 'Pages', $num_pages->publish ) . '</a></td>'; 222 222 223 223 // Approved Comments 224 224 $num = number_format_i18n($num_comm->approved); 225 225 if ( current_user_can( 'moderate_comments' ) ) 226 226 $num = "<a href='edit-comments.php?comment_status=approved'>$num</a>"; 227 227 echo '<td class="b b_approved">'.$num.'</td>'; 228 echo '<td class="last t approved">' . __ngettext( 'Approved', 'Approved', $num_comm->approved ) . '</td>';228 echo '<td class="last t"><a class="approved" href="edit-comments.php?comment_status=approved">' . __ngettext( 'Approved', 'Approved', $num_comm->approved ) . '</a></td>'; 229 229 230 230 echo "</tr>\n\t<tr>"; 231 231 … … 234 234 if ( current_user_can( 'manage_categories' ) ) 235 235 $num = "<a href='categories.php'>$num</a>"; 236 236 echo '<td class="first b b-cats">'.$num.'</td>'; 237 echo '<td class="t cats"> ' . __ngettext( 'Category', 'Categories', $num_cats ) . '</td>';237 echo '<td class="t cats"><a href="categories.php">' . __ngettext( 'Category', 'Categories', $num_cats ) . '</a></td>'; 238 238 239 239 // Pending Comments 240 240 $num = number_format_i18n($num_comm->moderated); 241 241 if ( current_user_can( 'moderate_comments' ) ) 242 242 $num = "<a href='edit-comments.php?comment_status=moderated'><span class='pending-count'>$num</span></a>"; 243 243 echo '<td class="b b-waiting">'.$num.'</td>'; 244 echo '<td class="last t waiting">' . __ngettext( 'Pending', 'Pending', $num_comm->moderated ) . '</td>';244 echo '<td class="last t"><a class="waiting" href="edit-comments.php?comment_status=moderated">' . __ngettext( 'Pending', 'Pending', $num_comm->moderated ) . '</a></td>'; 245 245 246 246 echo "</tr>\n\t<tr>"; 247 247 … … 250 250 if ( current_user_can( 'manage_categories' ) ) 251 251 $num = "<a href='edit-tags.php'>$num</a>"; 252 252 echo '<td class="first b b-tags">'.$num.'</td>'; 253 echo '<td class="t tags"> ' . __ngettext( 'Tag', 'Tags', $num_tags ) . '</td>';253 echo '<td class="t tags"><a href="edit-tags.php">' . __ngettext( 'Tag', 'Tags', $num_tags ) . '</a></td>'; 254 254 255 255 // Spam Comments 256 256 $num = number_format_i18n($num_comm->spam); 257 257 if ( current_user_can( 'moderate_comments' ) ) 258 258 $num = "<a href='edit-comments.php?comment_status=spam'><span class='spam-count'>$num</span></a>"; 259 259 echo '<td class="b b-spam">'.$num.'</td>'; 260 echo '<td class="last t spam">' . __ngettext( 'Spam', 'Spam', $num_comm->spam ) . '</td>';260 echo '<td class="last t"><a class="spam" href="edit-comments.php?comment_status=spam">' . __ngettext( 'Spam', 'Spam', $num_comm->spam ) . '</a></td>'; 261 261 262 262 echo "</tr>"; 263 263 do_action('right_now_table_end');
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)