Changeset 23677 for trunk/wp-content/themes/twentythirteen/functions.php
- Timestamp:
- 03/12/2013 10:07:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentythirteen/functions.php
r23673 r23677 603 603 604 604 /** 605 * Usability improvement for better viewing of images on attachment pages.606 *607 * Moves the focus down to the main content area to by appending an in-page608 * anchor to attachment link URLs.609 *610 * @since Twenty Thirteen 1.0611 *612 * @param string $url The image attachment URL613 * @return string URL with extra anchor appended.614 */615 function twentythirteen_attachment_link( $url ) {616 if ( wp_attachment_is_image() )617 $url .= '#main';618 619 return $url;620 }621 add_filter( 'attachment_link', 'twentythirteen_attachment_link' );622 623 /**624 605 * Add postMessage support for site title and description for the Customizer. 625 606 *
Note: See TracChangeset
for help on using the changeset viewer.