WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/01/2019 08:22:31 AM (2 years ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in the default themes.

See #47632

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/inc/template-tags.php

    r45256 r45581  
    2424        <div class="nav-links">
    2525            <?php
    26             if ( $prev_link = get_previous_comments_link( __( 'Older Comments', 'twentyfifteen' ) ) ) :
     26            $prev_link = get_previous_comments_link( __( 'Older Comments', 'twentyfifteen' ) );
     27            if ( $prev_link ) {
    2728                printf( '<div class="nav-previous">%s</div>', $prev_link );
    28                 endif;
    29 
    30             if ( $next_link = get_next_comments_link( __( 'Newer Comments', 'twentyfifteen' ) ) ) :
     29            }
     30
     31            $next_link = get_next_comments_link( __( 'Newer Comments', 'twentyfifteen' ) );
     32            if ( $next_link ) {
    3133                printf( '<div class="nav-next">%s</div>', $next_link );
    32                 endif;
     34            }
    3335            ?>
    3436            </div><!-- .nav-links -->
     
    142144 */
    143145function twentyfifteen_categorized_blog() {
    144     if ( false === ( $all_the_cool_cats = get_transient( 'twentyfifteen_categories' ) ) ) {
     146    $all_the_cool_cats = get_transient( 'twentyfifteen_categories' );
     147    if ( false === $all_the_cool_cats ) {
    145148        // Create an array of all the categories that are attached to posts.
    146149        $all_the_cool_cats = get_categories(
Note: See TracChangeset for help on using the changeset viewer.