Changeset 11987
- Timestamp:
- 10/01/2009 05:41:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r11956 r11987 721 721 * @param int $id Optional. Post ID. 722 722 */ 723 function edit_post_link( $link = 'Edit This', $before = '', $after = '', $id = 0 ) {723 function edit_post_link( $link = null, $before = '', $after = '', $id = 0 ) { 724 724 if ( !$post = &get_post( $id ) ) 725 725 return; … … 727 727 if ( !$url = get_edit_post_link( $post->ID ) ) 728 728 return; 729 730 if ( null === $link ) 731 $link = __('Edit This'); 729 732 730 733 $link = '<a class="post-edit-link" href="' . $url . '" title="' . esc_attr( __( 'Edit post' ) ) . '">' . $link . '</a>'; … … 818 821 * @return string|null HTML content, if $echo is set to false. 819 822 */ 820 function edit_comment_link( $link = 'Edit This', $before = '', $after = '' ) {823 function edit_comment_link( $link = null, $before = '', $after = '' ) { 821 824 global $comment, $post; 822 825 … … 828 831 return; 829 832 } 833 834 if ( null === $link ) 835 $link = __('Edit This'); 830 836 831 837 $link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '" title="' . __( 'Edit comment' ) . '">' . $link . '</a>';
Note: See TracChangeset
for help on using the changeset viewer.