WordPress.org

Make WordPress Core

Changeset 35293


Ignore:
Timestamp:
10/20/2015 04:12:21 PM (4 years ago)
Author:
SergeyBiryukov
Message:

In wp_list_categories(), rewrite a long condition for clarity.

See #34363.

File:
1 edited

Legend:

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

    r35291 r35293  
    607607            // Fallback for the 'All' link is the posts page.
    608608            if ( ! $posts_page ) {
    609                 $posts_page = 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) ? get_permalink( get_option( 'page_for_posts' ) ) : home_url( '/' );
     609                if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) ) {
     610                    $posts_page = get_permalink( get_option( 'page_for_posts' ) );
     611                } else {
     612                    $posts_page = home_url( '/' );
     613                }
    610614            }
    611615
Note: See TracChangeset for help on using the changeset viewer.