mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@35291 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -604,7 +604,7 @@ function wp_list_categories( $args = '' ) {
|
||||
}
|
||||
}
|
||||
|
||||
// Fallback for the 'All' link is the front page.
|
||||
// Fallback for the 'All' link is the posts page.
|
||||
if ( ! $posts_page ) {
|
||||
$posts_page = 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) ? get_permalink( get_option( 'page_for_posts' ) ) : home_url( '/' );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user