summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/template-loader.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-inst/wp-includes/template-loader.php')
-rw-r--r--wp-inst/wp-includes/template-loader.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/wp-inst/wp-includes/template-loader.php b/wp-inst/wp-includes/template-loader.php
index fcab1a8..f503f37 100644
--- a/wp-inst/wp-includes/template-loader.php
+++ b/wp-inst/wp-includes/template-loader.php
@@ -48,6 +48,8 @@ if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) {
include(get_paged_template());
exit;
} else if ( file_exists(TEMPLATEPATH . "/index.php") ) {
+ if ( is_attachment() )
+ add_filter('the_content', 'prepend_attachment');
include(TEMPLATEPATH . "/index.php");
exit;
}