Changeset 34098 for trunk/src/wp-includes/link-template.php
- Timestamp:
- 09/13/2015 11:33:30 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r34088 r34098 1211 1211 * @param string $after Optional. Display after edit link. 1212 1212 * @param int $id Optional. Post ID. 1213 */ 1214 function edit_post_link( $text = null, $before = '', $after = '', $id = 0 ) { 1213 * @param string $class Optional. Add custom class to link. 1214 */ 1215 function edit_post_link( $text = null, $before = '', $after = '', $id = 0, $class = 'post-edit-link' ) { 1215 1216 if ( ! $post = get_post( $id ) ) { 1216 1217 return; … … 1225 1226 } 1226 1227 1227 $link = '<a class=" post-edit-link" href="' . $url . '">' . $text . '</a>';1228 $link = '<a class="' . $class . '" href="' . $url . '">' . $text . '</a>'; 1228 1229 1229 1230 /**
Note: See TracChangeset
for help on using the changeset viewer.