WordPress.org

Make WordPress Core

Changeset 21449


Ignore:
Timestamp:
08/06/12 00:01:32 (21 months ago)
Author:
lancewillett
Message:

Twenty Twelve: check for empty variable for simpler logic, props jkudish. See #21479.

File:
1 edited

Legend:

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

    r21444 r21449  
    317317    if ( '' != $tag_list ) { 
    318318        $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s by %4$s.', 'twentytwelve' ); 
    319     } elseif ( '' != $categories_list && twentytwelve_is_categorized_site() ) { 
     319    } elseif ( ! empty( $categories_list ) && twentytwelve_is_categorized_site() ) { 
    320320        $utility_text = __( 'This entry was posted in %1$s on %3$s by %4$s.', 'twentytwelve' ); 
    321321    } else { 
Note: See TracChangeset for help on using the changeset viewer.