Make WordPress Core


Ignore:
Timestamp:
08/04/2017 11:00:50 PM (7 years ago)
Author:
johnbillion
Message:

Formatting: Introduce get_the_post_type_description() to allow post type archive descriptions to be formatted the same as author and term archives.

Props henry.wright

Fixes #40040

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r41172 r41232  
    115115
    116116// Format text area for display.
    117 foreach ( array( 'term_description', 'get_the_author_description' ) as $filter ) {
     117foreach ( array( 'term_description', 'get_the_author_description', 'get_the_post_type_description' ) as $filter ) {
    118118    add_filter( $filter, 'wptexturize'      );
    119119    add_filter( $filter, 'convert_chars'    );
Note: See TracChangeset for help on using the changeset viewer.