Make WordPress Core

Ticket #21969: 21969.patch

File 21969.patch, 815 bytes (added by SergeyBiryukov, 12 years ago)
  • wp-includes/theme.php

     
    171171 * @return string
    172172 */
    173173function get_stylesheet_directory_uri() {
    174         $stylesheet = get_stylesheet();
     174        $stylesheet = str_replace( '%2F', '/', rawurlencode( get_stylesheet() ) );
    175175        $theme_root_uri = get_theme_root_uri( $stylesheet );
    176176        $stylesheet_dir_uri = "$theme_root_uri/$stylesheet";
    177177
     
    265265 * @return string Template directory URI.
    266266 */
    267267function get_template_directory_uri() {
    268         $template = get_template();
     268        $template = str_replace( '%2F', '/', rawurlencode( get_template() ) );
    269269        $theme_root_uri = get_theme_root_uri( $template );
    270270        $template_dir_uri = "$theme_root_uri/$template";
    271271