Skip to content

Commit

Permalink
Type hinted $wp_query to shut warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rarst committed Jan 12, 2014
1 parent f17c56d commit f9f4f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archive-wpapi-function.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

<?php if ( $wp_query->current_post ) : ?>
<?php /** @var \WP_Query $wp_query */ if ( $wp_query->current_post ) : ?>
<hr />
<?php endif; ?>

Expand Down

0 comments on commit f9f4f95

Please sign in to comment.