Skip to content

Commit

Permalink
use locate_template here so descendents can be overriden in child themes
Browse files Browse the repository at this point in the history
  • Loading branch information
aschweigert committed Feb 18, 2015
1 parent 9fbe6e3 commit 91b5290
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion page.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/**
* The Template for displaying all pages.
*/
include_once __DIR__ . '/single.php';
locate_template( 'single.php', true );
4 changes: 2 additions & 2 deletions single.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
* The Template for displaying all single posts.
*/
if ( of_get_option( 'single_template' ) == 'classic' )
include_once __DIR__ . '/single-two-column.php';
locate_template( 'single-two-column.php', true );
else
include_once __DIR__ . '/single-one-column.php';
locate_template( 'single-one-column.php', true );

0 comments on commit 91b5290

Please sign in to comment.