In `wp_list_categories()`, rewrite a long condition for clarity.
See #34363. Built from https://develop.svn.wordpress.org/trunk@35293 git-svn-id: http://core.svn.wordpress.org/trunk@35259 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e0af554638
commit
b8e250927f
|
@ -606,7 +606,11 @@ function wp_list_categories( $args = '' ) {
|
||||||
|
|
||||||
// Fallback for the 'All' link is the posts 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( '/' );
|
if ( 'page' == get_option( 'show_on_front' ) && get_option( 'page_for_posts' ) ) {
|
||||||
|
$posts_page = get_permalink( get_option( 'page_for_posts' ) );
|
||||||
|
} else {
|
||||||
|
$posts_page = home_url( '/' );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$posts_page = esc_url( $posts_page );
|
$posts_page = esc_url( $posts_page );
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-35292';
|
$wp_version = '4.4-alpha-35293';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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…
Reference in New Issue