WordPress.org

Make WordPress Core

Ticket #3755: general-template.php.diff

File general-template.php.diff, 633 bytes (added by jhodgdon, 13 years ago)

Patch to wp_title function: strip tags after filtering post title

  • E:/EclipseWork/WordPressDev/wp-includes/general-template.php

     
    203203
    204204        // If there is a post
    205205        if ( is_single() || is_page() ) {
    206                 $title = strip_tags($posts[0]->post_title);
    207                 $title = apply_filters('single_post_title', $title);
     206                $title = $posts[0]->post_title;
     207                $title = apply_filters('single_post_title', $title);   
     208                $title = strip_tags($title);
    208209        }
    209210
    210211        $prefix = '';