Ticket #29454: 29454.2.patch
File 29454.2.patch, 937 bytes (added by , 10 years ago) |
---|
-
wp-includes/comment-template.php
1255 1255 echo $home . '/' . $wpcommentspopupfile . '?comments_popup=' . $id; 1256 1256 echo '" onclick="wpopen(this.href); return false"'; 1257 1257 } else { // if comments_popup_script() is not in the template, display simple comment link 1258 if ( 0 == $number ) 1259 echo get_permalink() . '#respond'; 1260 else 1258 if ( 0 == $number ) { 1259 /** 1260 * Filter the respond link when a post has no comments. 1261 * 1262 * @since 4.1.0 1263 * 1264 * @param string $respond_link The default response link. 1265 * @param integer $id The post ID. 1266 */ 1267 $respond_link = get_permalink() . '#respond'; 1268 echo apply_filters( 'respond_link', $respond_link, $id ); 1269 } else { 1261 1270 comments_link(); 1271 } 1262 1272 echo '"'; 1263 1273 } 1264 1274