Skip to content
Browse files

using locate_template instead of get_template_part

the fact that get_template_part can traverse directories is actually to be considered a bug so we should be using locate template instead.
  • Loading branch information...
1 parent 716b214 commit 3854f85181cf0dafae7908b5627733718327f2c3 @curtismchale committed Dec 3, 2011
Showing with 3 additions and 6 deletions.
  1. +1 −2 archive.php
  2. +1 −2 index.php
  3. +1 −2 single.php
View
3 archive.php
@@ -45,8 +45,7 @@
<?php endwhile; ?>
<!-- includes next previous links or post level nav -->
- <!-- TODO locate_template -->
- <?php get_template_part( 'assets/includes/post-navigation' ); ?>
+ <?php locate_template( array( 'assets/includes/post-navigation.php' ), true ); ?>
<?php else : ?>
View
3 index.php
@@ -26,8 +26,7 @@
<?php endwhile; ?>
<!-- includes next previous links or post level nav -->
- <!-- TODO locate_template -->
- <?php get_template_part( 'assets/includes/post-navigation' ); ?>
+ <?php locate_template( array( 'assets/includes/post-navigation.php' ), true ); ?>
<?php else : ?>
View
3 single.php
@@ -22,8 +22,7 @@
<?php get_template_part( 'loop', 'blog' ); ?>
<!-- includes next previous links or post level nav -->
- <!-- TODO locate_template -->
- <?php get_template_part( 'assets/includes/post-navigation' ); ?>
+ <?php locate_template( array( 'assets/includes/post-navigation.php' ), true ); ?>
<?php endwhile; else: ?>

0 comments on commit 3854f85

Please sign in to comment.
Something went wrong with that request. Please try again.