Changeset 9247
- Timestamp:
- 10/19/2008 12:38:29 AM (16 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r9233 r9247 158 158 <option value="all"><?php _e('Show all comment types'); ?></option> 159 159 <?php 160 $comment_types = a rray(160 $comment_types = apply_filters( 'admin_comment_types_dropdown', array( 161 161 'comment' => __('Comments'), 162 'pingback' => __('Pingbacks'), 163 'trackback' => __('Trackbacks'), 164 ); 162 'pings' => __('Pings'), 163 ) ); 165 164 166 165 foreach ( $comment_types as $type => $label ) { -
trunk/wp-admin/includes/template.php
r9240 r9247 1786 1786 elseif ( 'trackback' == $type ) 1787 1787 $typesql = "AND comment_type = 'trackback'"; 1788 elseif ( 'pings' == $type ) 1789 $typesql = "AND ( comment_type = 'pingback' OR comment_type = 'trackback' )"; 1788 1790 else 1789 1791 $typesql = ''; … … 1944 1946 echo "<td $attributes>\n"; 1945 1947 echo ""$post_link" "; 1946 echo '<a href="edit-comments.php?p=' . $post->ID . '">' . sprintf ( __ngettext('(%s comment)', '(%s comments)', $post->comment_count), $post->comment_count ) . '</a><br />'; 1948 echo '<a href="edit-comments.php?p=' . $post->ID; 1949 if ( !empty($_GET['comment_type']) ) echo '&comment_type=' . htmlspecialchars( $_GET['comment_type'] ); 1950 echo '">' . sprintf ( __ngettext('(%s comment)', '(%s comments)', $post->comment_count), $post->comment_count ) . '</a><br />'; 1947 1951 echo get_the_time(__('Y/m/d \a\t g:ia')); 1948 1952 echo '</td>';
Note: See TracChangeset
for help on using the changeset viewer.