General: Ensure `$description` gets initialized in `get_the_archive_description()` if the post type archive conditional is true and the description isn't set.
Props henrywright. See #38487. Built from https://develop.svn.wordpress.org/trunk@40983 git-svn-id: http://core.svn.wordpress.org/trunk@40833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cb81009729
commit
5fa2de51ef
|
@ -1565,6 +1565,8 @@ function get_the_archive_description() {
|
||||||
// Check if a description is set.
|
// Check if a description is set.
|
||||||
if ( isset( $post_type_obj->description ) ) {
|
if ( isset( $post_type_obj->description ) ) {
|
||||||
$description = $post_type_obj->description;
|
$description = $post_type_obj->description;
|
||||||
|
} else {
|
||||||
|
$description = '';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$description = term_description();
|
$description = term_description();
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-alpha-40982';
|
$wp_version = '4.9-alpha-40983';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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