WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/12/2013 10:07:27 PM (5 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: revert addition of twentythirteen_attachment_link() in r23523 -- as discussed in the following ticket comments, the tradeoff means simpler code instead of a minor UX enhancement. Closes #23543 and #23719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/functions.php

    r23673 r23677  
    603603
    604604/**
    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-page
    608  * anchor to attachment link URLs.
    609  *
    610  * @since Twenty Thirteen 1.0
    611  *
    612  * @param string $url The image attachment URL
    613  * @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 /**
    624605 * Add postMessage support for site title and description for the Customizer.
    625606 *
Note: See TracChangeset for help on using the changeset viewer.