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.
git-svn-id: http://core.svn.wordpress.org/trunk@23677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e18309bc0e
commit
6355d286ba
|
@ -601,25 +601,6 @@ function twentythirteen_aside_date( $content ) {
|
||||||
}
|
}
|
||||||
add_filter( 'the_content', 'twentythirteen_aside_date', 8 ); // After embeds, before everything else.
|
add_filter( 'the_content', 'twentythirteen_aside_date', 8 ); // After embeds, before everything else.
|
||||||
|
|
||||||
/**
|
|
||||||
* Usability improvement for better viewing of images on attachment pages.
|
|
||||||
*
|
|
||||||
* Moves the focus down to the main content area to by appending an in-page
|
|
||||||
* anchor to attachment link URLs.
|
|
||||||
*
|
|
||||||
* @since Twenty Thirteen 1.0
|
|
||||||
*
|
|
||||||
* @param string $url The image attachment URL
|
|
||||||
* @return string URL with extra anchor appended.
|
|
||||||
*/
|
|
||||||
function twentythirteen_attachment_link( $url ) {
|
|
||||||
if ( wp_attachment_is_image() )
|
|
||||||
$url .= '#main';
|
|
||||||
|
|
||||||
return $url;
|
|
||||||
}
|
|
||||||
add_filter( 'attachment_link', 'twentythirteen_attachment_link' );
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add postMessage support for site title and description for the Customizer.
|
* Add postMessage support for site title and description for the Customizer.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue