mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 03:56:07 +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. Built from https://develop.svn.wordpress.org/trunk@35291 git-svn-id: http://core.svn.wordpress.org/trunk@35257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7c3a476909
commit
b285b3002a
@ -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 ) {
|
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( '/' );
|
$posts_page = 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) ? get_permalink( get_option( 'page_for_posts' ) ) : home_url( '/' );
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-35290';
|
$wp_version = '4.4-alpha-35291';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user