Run attachment filter for themes that don't have single.php or page.php. Props podz. fixes #1924

git-svn-id: https://develop.svn.wordpress.org/trunk@3174 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-11-21 02:08:59 +00:00
parent 559d1847fa
commit 94804af59a
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}