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:
parent
75a3af7d17
commit
491ee1a1aa
|
@ -12,8 +12,8 @@
|
||||||
<?php
|
<?php
|
||||||
if ( have_posts() ) {
|
if ( have_posts() ) {
|
||||||
$bgcolor = '';
|
$bgcolor = '';
|
||||||
while (have_posts()) : the_post();
|
|
||||||
add_filter('the_title','wp_specialchars');
|
add_filter('the_title','wp_specialchars');
|
||||||
|
while (have_posts()) : the_post();
|
||||||
$class = ('alternate' == $class) ? '' : 'alternate';
|
$class = ('alternate' == $class) ? '' : 'alternate';
|
||||||
global $current_user;
|
global $current_user;
|
||||||
$post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' );
|
$post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' );
|
||||||
|
|
Loading…
Reference in New Issue