Changeset 11425 for trunk/wp-includes/link-template.php
- Timestamp:
- 05/21/2009 06:43:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r11383 r11425 712 712 713 713 /** 714 * Retrieve edit postslink for post.714 * Display edit post link for post. 715 715 * 716 716 * @since 1.0.0 … … 719 719 * @param string $before Optional. Display before edit link. 720 720 * @param string $after Optional. Display after edit link. 721 */ 722 function edit_post_link( $link = 'Edit This', $before = '', $after = '' ) { 723 global $post; 721 * @param int $id Optional. Post ID. 722 */ 723 function edit_post_link( $link = 'Edit This', $before = '', $after = '', $id = 0 ) { 724 if ( !$post = &get_post( $id ) ) 725 return; 724 726 725 727 if ( $post->post_type == 'page' ) {
Note: See TracChangeset
for help on using the changeset viewer.