Ticket #10463: 10463.001.diff
| File 10463.001.diff, 2.0 KB (added by , 16 years ago) |
|---|
-
trunk/wp-admin/includes/template.php
1983 1983 * 1984 1984 * @since unknown 1985 1985 * 1986 * @param unknown_type $status1987 * @param unknown_type $s1988 * @param unknown_type $start1989 * @param unknown_type $num1990 * @param unknown_type $post1991 * @param unknown_type $type1992 * @return unknown1986 * @param string $status Comment status (approved, spam, deleted, etc) 1987 * @param string $s Term to search for 1988 * @param int $start Offset to start at for pagination 1989 * @param int $num Maximum number of comments to return 1990 * @param int $post Post ID or 0 to return all comments 1991 * @param string $type Comment type (comment, trackback, pingback, etc) 1992 * @return array [0] contains the comments and [1] contains the total number of comments that match (ignoring $start and $num) 1993 1993 */ 1994 1994 function _wp_get_comment_list( $status = '', $s = false, $start, $num, $post = 0, $type = '' ) { 1995 1995 global $wpdb; … … 2029 2029 2030 2030 if ( 'comment' == $type ) 2031 2031 $typesql = "AND comment_type = ''"; 2032 elseif ( 'pingback' == $type )2033 $typesql = "AND comment_type = 'pingback'";2034 elseif ( 'trackback' == $type )2035 $typesql = "AND comment_type = 'trackback'";2036 2032 elseif ( 'pings' == $type ) 2037 2033 $typesql = "AND ( comment_type = 'pingback' OR comment_type = 'trackback' )"; 2034 elseif ( !empty($type) ) 2035 $typesql = $wpdb->prepare("AND comment_type = %s", $type); 2038 2036 else 2039 2037 $typesql = ''; 2040 2038 … … 2124 2122 echo '<div id="submitted-on">'; 2125 2123 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'))); 2126 2124 echo '</div>'; 2127 comment_text(); 2125 comment_text(); 2128 2126 if ( $user_can ) { ?> 2129 2127 <div id="inline-<?php echo $comment->comment_ID; ?>" class="hidden"> 2130 2128 <textarea class="comment" rows="1" cols="1"><?php echo htmlspecialchars($comment->comment_content, ENT_QUOTES); ?></textarea>