mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@40983 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6bf8783afd
commit
5384177208
@ -1565,6 +1565,8 @@ function get_the_archive_description() {
|
||||
// Check if a description is set.
|
||||
if ( isset( $post_type_obj->description ) ) {
|
||||
$description = $post_type_obj->description;
|
||||
} else {
|
||||
$description = '';
|
||||
}
|
||||
} else {
|
||||
$description = term_description();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user