Make WordPress Core


Ignore:
Timestamp:
07/01/2017 02:22:59 PM (7 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r40977 r40983  
    15661566        if ( isset( $post_type_obj->description ) ) {
    15671567            $description = $post_type_obj->description;
     1568        } else {
     1569            $description = '';
    15681570        }
    15691571    } else {
Note: See TracChangeset for help on using the changeset viewer.