diff --git src/wp-includes/general-template.php src/wp-includes/general-template.php
index 04df698..c6dbfad 100644
|
|
function the_archive_description( $before = '', $after = '' ) { |
1549 | 1549 | function get_the_archive_description() { |
1550 | 1550 | if ( is_author() ) { |
1551 | 1551 | $description = get_the_author_meta( 'description' ); |
| 1552 | } else if ( is_post_type_archive() ) { |
| 1553 | $post_type = get_query_var( 'post_type' ); |
| 1554 | if ( is_array( $post_type ) ) { |
| 1555 | $post_type = reset( $post_type ); |
| 1556 | } |
| 1557 | $post_type_obj = get_post_type_object( $post_type ); |
| 1558 | |
| 1559 | // Check if a description is set. |
| 1560 | if ( isset( $post_type_obj->description ) ) { |
| 1561 | $description = $post_type_obj->description; |
| 1562 | } else { |
| 1563 | $description = ''; |
| 1564 | } |
1552 | 1565 | } else { |
1553 | 1566 | $description = term_description(); |
1554 | 1567 | } |