Skip to content

Commit a81dbff

Browse files
authored
Remove $order variable
1 parent 660b000 commit a81dbff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-content/themes/twentyten/loop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<?php // Display navigation to next/previous pages when applicable. ?>
2323
<?php
2424
if ( $wp_query->max_num_pages > 1 ) :
25-
$is_desc = ( get_query_var( 'order', 'DESC' ) === $order );
25+
$is_desc = ( 'DESC' === get_query_var( 'order', 'DESC' ) );
2626

2727
$new_posts_text = __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' );
2828
$old_posts_text = __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' );

0 commit comments

Comments
 (0)