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:
parent
45226eae66
commit
453777f9b4
|
@ -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