Image fu from Andy. fixes #1776

git-svn-id: https://develop.svn.wordpress.org/trunk@2958 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-10-20 20:48:32 +00:00
parent 7f5350d345
commit 1da25e1927
10 changed files with 252 additions and 79 deletions
+8 -2
View File
@@ -1,5 +1,4 @@
<?php
if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) {
do_action('template_redirect');
if ( is_feed() ) {
@@ -17,10 +16,17 @@ if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) {
} else if ( is_home() && get_home_template() ) {
include(get_home_template());
exit;
} else if ( is_subpost() && get_subpost_template() ) {
include(get_subpost_template());
exit;
} else if ( is_single() && get_single_template() ) {
if ( is_subpost() )
add_filter('the_content', 'prepend_object');
include(get_single_template());
exit;
} else if ( is_page() && get_page_template() ) {
if ( is_subpost() )
add_filter('the_content', 'prepend_object');
include(get_page_template());
exit;
} else if ( is_category() && get_category_template()) {
@@ -56,4 +62,4 @@ if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) {
}
}
?>
?>