Make WordPress Core

Ticket #18614: patches-post-type-archive-title.diff

File patches-post-type-archive-title.diff, 486 bytes (added by wonderboymusic, 13 years ago)

Revised Patch for this ticket

  • wp-includes/general-template.php

     
    661661        if ( ! is_post_type_archive() )
    662662                return;
    663663
    664         $post_type_obj = get_queried_object();
     664        $post_type_obj = get_post_type_object( get_post_type() );
    665665        $title = apply_filters('post_type_archive_title', $post_type_obj->labels->name );
    666666
    667667        if ( $display )