WordPress.org

Make WordPress Core

Changeset 5625


Ignore:
Timestamp:
06/01/2007 10:54:46 PM (13 years ago)
Author:
rob1n
Message:

Fix wp_title single post title filters. Props jhodgdon. fixes #3755

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-includes/general-template.php

    r5620 r5625  
    219219    if ( is_single() || is_page() ) {
    220220        $post = $wp_query->get_queried_object();
    221         $title = apply_filters('single_post_title', $title);
    222         $title = strip_tags($post->post_title);
     221        $title = strip_tags( apply_filters( 'single_post_title', $post->post_title ) );
    223222    }
    224223
  • trunk/wp-includes/general-template.php

    r5619 r5625  
    227227    if ( is_single() || is_page() ) {
    228228        $post = $wp_query->get_queried_object();
    229         $title = apply_filters('single_post_title', $title);
    230         $title = strip_tags($post->post_title);
     229        $title = strip_tags( apply_filters( 'single_post_title', $post->post_title ) );
    231230    }
    232231
Note: See TracChangeset for help on using the changeset viewer.