Changeset 11748
- Timestamp:
- 07/27/2009 11:28:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r11743 r11748 1982 1982 * @since unknown 1983 1983 * 1984 * @param unknown_type $status1985 * @param unknown_type $s1986 * @param unknown_type $start1987 * @param unknown_type $num1988 * @param unknown_type $post1989 * @param unknown_type $type1990 * @return unknown1984 * @param string $status Comment status (approved, spam, deleted, etc) 1985 * @param string $s Term to search for 1986 * @param int $start Offset to start at for pagination 1987 * @param int $num Maximum number of comments to return 1988 * @param int $post Post ID or 0 to return all comments 1989 * @param string $type Comment type (comment, trackback, pingback, etc) 1990 * @return array [0] contains the comments and [1] contains the total number of comments that match (ignoring $start and $num) 1991 1991 */ 1992 1992 function _wp_get_comment_list( $status = '', $s = false, $start, $num, $post = 0, $type = '' ) { … … 2028 2028 if ( 'comment' == $type ) 2029 2029 $typesql = "AND comment_type = ''"; 2030 elseif ( 'pingback' == $type )2031 $typesql = "AND comment_type = 'pingback'";2032 elseif ( 'trackback' == $type )2033 $typesql = "AND comment_type = 'trackback'";2034 2030 elseif ( 'pings' == $type ) 2035 2031 $typesql = "AND ( comment_type = 'pingback' OR comment_type = 'trackback' )"; 2032 elseif ( !empty($type) ) 2033 $typesql = $wpdb->prepare("AND comment_type = %s", $type); 2036 2034 else 2037 2035 $typesql = ''; … … 2123 2121 printf(__('Submitted on <a href="%1$s">%2$s at %3$s</a>'), get_comment_link($comment->comment_ID), get_comment_date(__('Y/m/d')), get_comment_date(__('g:ia'))); 2124 2122 echo '</div>'; 2125 comment_text(); 2123 comment_text(); 2126 2124 if ( $user_can ) { ?> 2127 2125 <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden">
Note: See TracChangeset
for help on using the changeset viewer.