Skip to content

Commit b7a04a5

Browse files
Remove $order variable
Co-authored-by: Weston Ruter <[email protected]>
1 parent 5209dc0 commit b7a04a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

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

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

0 commit comments

Comments
 (0)