mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Add template and stylesheet filters.
git-svn-id: https://develop.svn.wordpress.org/trunk@1789 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1830,8 +1830,16 @@ function the_post() {
|
||||
start_wp(true);
|
||||
}
|
||||
|
||||
function get_stylesheet() {
|
||||
return apply_filters('stylesheet', get_settings('stylesheet'));
|
||||
}
|
||||
|
||||
function get_template() {
|
||||
return apply_filters('template', get_settings('template'));
|
||||
}
|
||||
|
||||
function get_template_directory() {
|
||||
$template = get_settings('template');
|
||||
$template = get_template();
|
||||
|
||||
if (empty($template) || $template == 'default') {
|
||||
$template = ABSPATH . "wp-content";
|
||||
|
||||
Reference in New Issue
Block a user