add title filter outside of the loop. Do we even need it?

git-svn-id: https://develop.svn.wordpress.org/trunk@5811 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-07-21 00:05:28 +00:00
parent 45226eae66
commit 453777f9b4
1 changed files with 1 additions and 1 deletions

View File

@ -12,8 +12,8 @@
<?php
if ( have_posts() ) {
$bgcolor = '';
while (have_posts()) : the_post();
add_filter('the_title','wp_specialchars');
while (have_posts()) : the_post();
$class = ('alternate' == $class) ? '' : 'alternate';
global $current_user;
$post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' );