Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
functions.php cleanup
  • Loading branch information
obenland committed Apr 18, 2012
1 parent ff81f5f commit 24fca43
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions functions.php
Expand Up @@ -345,13 +345,13 @@ function the_bootstrap_page_menu_args( $args ) {
* @return string * @return string
*/ */
function the_bootstrap_enhanced_image_navigation( $url, $id ) { function the_bootstrap_enhanced_image_navigation( $url, $id ) {
if ( ! is_attachment() AND ! wp_attachment_is_image( $id ) )
return $url; if ( is_attachment() AND wp_attachment_is_image( $id ) ) {
$image = get_post( $id );
$image = get_post( $id ); if ( $image->post_parent AND $image->post_parent != $id )
if ( $image->post_parent AND $image->post_parent != $id ) $url .= '#primary';
$url .= '#primary'; }

return $url; return $url;
} }
add_filter( 'attachment_link', 'the_bootstrap_enhanced_image_navigation', 10, 2 ); add_filter( 'attachment_link', 'the_bootstrap_enhanced_image_navigation', 10, 2 );
Expand Down Expand Up @@ -562,7 +562,7 @@ function the_bootstrap_comment_form_field_url( $html ) {
* *
* @return string * @return string
*/ */
function the_bootstrap_get_attachment_link( $link, $id, $size, $permalink, $icon, $text) { function the_bootstrap_get_attachment_link( $link, $id, $size, $permalink, $icon, $text ) {
if ( ! $text ) { if ( ! $text ) {
$link = str_replace( '<a ', '<a class="thumbnail" ', $link ); $link = str_replace( '<a ', '<a class="thumbnail" ', $link );
} }
Expand Down

0 comments on commit 24fca43

Please sign in to comment.