Changeset 9522 for trunk/wp-includes/comment-template.php
- Timestamp:
- 11/05/2008 07:09:20 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment-template.php
r9436 r9522 436 436 * 437 437 * @param object|string|int $comment Comment to retrieve. 438 * @param string|int $page The comment's page if known. Optional. Avoids extra database query. 438 439 * @return string The permalink to the current comment 439 440 */ 440 function get_comment_link( $comment = null) {441 function get_comment_link( $comment = null, $page = null ) { 441 442 global $wp_rewrite; 442 443 … … 444 445 445 446 if ( get_option('page_comments') ) { 446 $page = get_page_of_comment( $comment->comment_ID );447 $page = ( null !== $page ) ? (int) $page : get_page_of_comment( $comment->comment_ID ); 447 448 448 449 if ( $wp_rewrite->using_permalinks() ) … … 1151 1152 <?php endif; ?> 1152 1153 1153 <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date('F jS, Y'), get_comment_time()) ?></a><?php edit_comment_link('edit',' ','') ?></div>1154 <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID, $page ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date('F jS, Y'), get_comment_time()) ?></a><?php edit_comment_link('edit',' ','') ?></div> 1154 1155 1155 1156 <?php comment_text() ?>
Note: See TracChangeset
for help on using the changeset viewer.