mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +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";
|
||||
|
||||
@@ -82,7 +82,7 @@ function get_bloginfo($show='') {
|
||||
$output = get_settings('siteurl') .'/xmlrpc.php';
|
||||
break;
|
||||
case 'stylesheet_url':
|
||||
$output = get_settings('stylesheet');;
|
||||
$output = get_stylesheet();
|
||||
if (empty($output) || $output == 'default') {
|
||||
$output = get_settings('siteurl') . "/wp-layout.css";
|
||||
} else {
|
||||
@@ -90,7 +90,7 @@ function get_bloginfo($show='') {
|
||||
}
|
||||
break;
|
||||
case 'stylesheet_directory':
|
||||
$output = get_settings('stylesheet');;
|
||||
$output = get_stylesheet();
|
||||
if (empty($output) || $output == 'default') {
|
||||
$output = get_settings('siteurl');
|
||||
} else {
|
||||
@@ -99,7 +99,7 @@ function get_bloginfo($show='') {
|
||||
break;
|
||||
case 'template_directory':
|
||||
case 'template_url':
|
||||
$output = get_settings('template');;
|
||||
$output = get_template();
|
||||
if (empty($output) || $output == 'default') {
|
||||
$output = get_settings('siteurl');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user