_s: Remove image.php
and related code. Image attachments will be
displayed by `single.php`. See http://codex.wordpress.org/Template_Hierarchy
This commit is contained in:
parent
6f63a0b39a
commit
7c1067eee3
5 changed files with 0 additions and 162 deletions
|
@ -34,22 +34,6 @@ function _s_body_classes( $classes ) {
|
|||
}
|
||||
add_filter( 'body_class', '_s_body_classes' );
|
||||
|
||||
/**
|
||||
* Filter in a link to a content ID attribute for the next/previous image links
|
||||
* on image attachment pages.
|
||||
*/
|
||||
function _s_enhanced_image_navigation( $url, $id ) {
|
||||
if ( ! is_attachment() && ! wp_attachment_is_image( $id ) )
|
||||
return $url;
|
||||
|
||||
$image = get_post( $id );
|
||||
if ( ! empty( $image->post_parent ) && $image->post_parent != $id )
|
||||
$url .= '#main';
|
||||
|
||||
return $url;
|
||||
}
|
||||
add_filter( 'attachment_link', '_s_enhanced_image_navigation', 10, 2 );
|
||||
|
||||
/**
|
||||
* Filters wp_title to print a neat <title> tag based on what is being viewed.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue