Make WordPress Core

Ticket #13818: post_type_archive_title-parameters.diff

File post_type_archive_title-parameters.diff, 532 bytes (added by greenshady, 14 years ago)

Adds the $prefix and $display parameters to post_type_archive_title()

  • general-template.php

     
    650650 * @param bool $display Optional, default is true. Whether to display or retrieve title.
    651651 * @return string|null Title when retrieving, null when displaying or failure.
    652652 */
    653 function post_type_archive_title() {
     653function post_type_archive_title( $prefix = '', $display = true ) {
    654654        if ( ! is_post_type_archive() )
    655655                return;
    656656