Make WordPress Core

Changeset 35291


Ignore:
Timestamp:
10/20/2015 12:54:55 PM (10 years ago)
Author:
boonebgorges
Message:

Correct inline comment in wp_list_categories().

The fallback link for the 'All' option is 'page_for_posts', not
'page_on_front'. Introduced in [32292].

Props sudar, SergeyBiryukov.
Fixes #34363.

File:
1 edited

Legend:

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

    r35264 r35291  
    605605            }
    606606
    607             // Fallback for the 'All' link is the front page.
     607            // Fallback for the 'All' link is the posts page.
    608608            if ( ! $posts_page ) {
    609609                $posts_page = 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) ? get_permalink( get_option( 'page_for_posts' ) ) : home_url( '/' );
Note: See TracChangeset for help on using the changeset viewer.