Make WordPress Core

Ticket #39848: 39848.patch

File 39848.patch, 813 bytes (added by milana_cap, 7 years ago)

Proposal for new filter on title after the_title filter

  • src/wp-includes/post-template.php

     
    4747
    4848        $title = $before . $title . $after;
    4949
     50        /**
     51         * Filters the post title after 'the_title' filter.
     52         *
     53         * @param string $title The post title.
     54         */
     55        $title = apply_filters( 'the_title_wrap', $title );
     56
    5057        if ( $echo )
    5158                echo $title;
    5259        else
     
    11171124         * @param string $output HTML output for drop down list of pages.
    11181125         * @param array  $r      The parsed arguments array.
    11191126         * @param array  $pages  List of WP_Post objects returned by `get_pages()`
    1120          */
     1127         */
    11211128        $html = apply_filters( 'wp_dropdown_pages', $output, $r, $pages );
    11221129
    11231130        if ( $r['echo'] ) {