From ee3e50ff3dc446b1a6b868f1d798b9769e36e5ca Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 15 Jun 2005 18:49:47 +0000 Subject: [PATCH] Encode stylesheet reference. Hit tip: Scott Yang git-svn-id: http://svn.automattic.com/wordpress/trunk@2642 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 78928c6f29..de020de974 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1408,7 +1408,7 @@ function get_stylesheet_directory() { } function get_stylesheet_directory_uri() { - $stylesheet = get_stylesheet(); + $stylesheet = rawurlencode( get_stylesheet() ); $stylesheet_dir_uri = get_theme_root_uri() . "/$stylesheet"; return apply_filters('stylesheet_directory_uri', $stylesheet_dir_uri, $stylesheet); }