Make WordPress Core

Ticket #25605: 25605.diff

File 25605.diff, 754 bytes (added by DrewAPicture, 8 years ago)
  • src/wp-includes/general-template.php

     
    714714                $post_type = reset( $post_type );
    715715
    716716        $post_type_obj = get_post_type_object( $post_type );
    717         $title = apply_filters('post_type_archive_title', $post_type_obj->labels->name );
     717        /**
     718         * Filter the post type archive title.
     719         *
     720         * @since 3.1.0
     721         *
     722         * @param string $post_type_name Post type 'name' label.
     723         * @param string $post_type      Post type.
     724         */
     725        $title = apply_filters( 'post_type_archive_title', $post_type_obj->labels->name, $post_type );
    718726
    719727        if ( $display )
    720728                echo $prefix . $title;