From ca9480281cb3cb331788f8475b1e080bff59ec8d Mon Sep 17 00:00:00 2001 From: donncha Date: Mon, 21 Nov 2005 09:24:59 +0000 Subject: WP Merge git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@442 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-inst/wp-includes/template-loader.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wp-inst/wp-includes/template-loader.php') 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; } -- cgit