Make WordPress Core

Ticket #4506: general-template.php.patch

File general-template.php.patch, 501 bytes (added by pishmishy, 17 years ago)

Adds single_tag_title function

  • wp-includes/general-template.php

     
    276276        }
    277277}
    278278
     279function single_tag_title($prefix = '', $display = true ) {
     280        $tag = get_query_var('tag');
     281        $tag_name = get_term_by('slug', $tag, 'post_tag');
     282        echo $tag_name->name;
     283}
    279284
    280285function single_month_title($prefix = '', $display = true ) {
    281286        global $wp_locale;