Make WordPress Core


Ignore:
Timestamp:
07/28/2004 02:43:54 AM (20 years ago)
Author:
rboren
Message:

Support timestamp permalinks. Make wider use of is_single(). Bug 0000194.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-general.php

    r1460 r1491  
    9999function wp_title($sep = '»', $display = true) {
    100100    global $wpdb;
    101     global $m, $year, $monthnum, $day, $cat, $p, $name, $month, $posts, $single;
     101    global $m, $year, $monthnum, $day, $cat, $p, $name, $month, $posts;
    102102
    103103    // If there's a category
     
    129129
    130130    // If there's a post
    131     if ($single) {
     131    if (is_single()) {
    132132        $title = strip_tags($posts[0]->post_title);
    133133        $title = apply_filters('single_post_title', $title);
Note: See TracChangeset for help on using the changeset viewer.