Ticket #21969: 21969.patch
File 21969.patch, 815 bytes (added by , 12 years ago) |
---|
-
wp-includes/theme.php
171 171 * @return string 172 172 */ 173 173 function get_stylesheet_directory_uri() { 174 $stylesheet = get_stylesheet();174 $stylesheet = str_replace( '%2F', '/', rawurlencode( get_stylesheet() ) ); 175 175 $theme_root_uri = get_theme_root_uri( $stylesheet ); 176 176 $stylesheet_dir_uri = "$theme_root_uri/$stylesheet"; 177 177 … … 265 265 * @return string Template directory URI. 266 266 */ 267 267 function get_template_directory_uri() { 268 $template = get_template();268 $template = str_replace( '%2F', '/', rawurlencode( get_template() ) ); 269 269 $theme_root_uri = get_theme_root_uri( $template ); 270 270 $template_dir_uri = "$theme_root_uri/$template"; 271 271