WordPress.org

Make WordPress Core

Changeset 19212


Ignore:
Timestamp:
11/08/11 14:22:42 (2 years ago)
Author:
nacin
Message:

Simplify logic in wp_get_attachment_link(). see #18491.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r19210 r19212  
    11671167    if ( $text ) 
    11681168        $link_text = esc_attr( $text ); 
    1169     elseif ( ( is_int( $size ) && $size != 0 ) || ( is_string( $size ) && $size != 'none' ) || $size != false ) 
     1169    elseif ( $size && 'none' != $size ) 
    11701170        $link_text = wp_get_attachment_image( $id, $size, $icon ); 
    11711171    else 
Note: See TracChangeset for help on using the changeset viewer.