Run attachment filter for themes that don't have single.php or page.php. Props podz. fixes #1924
git-svn-id: http://svn.automattic.com/wordpress/trunk@3174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2f439c9306
commit
3587a865c9
|
@ -48,6 +48,8 @@ if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) {
|
||||||
include(get_paged_template());
|
include(get_paged_template());
|
||||||
exit;
|
exit;
|
||||||
} else if ( file_exists(TEMPLATEPATH . "/index.php") ) {
|
} else if ( file_exists(TEMPLATEPATH . "/index.php") ) {
|
||||||
|
if ( is_attachment() )
|
||||||
|
add_filter('the_content', 'prepend_attachment');
|
||||||
include(TEMPLATEPATH . "/index.php");
|
include(TEMPLATEPATH . "/index.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue