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

git-svn-id: http://svn.automattic.com/wordpress/trunk@5811 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-07-21 00:05:28 +00:00
parent 75a3af7d17
commit 491ee1a1aa

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' );