WordPress.org

Make WordPress Core

Ticket #21749: 21749.patch

File 21749.patch, 713 bytes (added by SergeyBiryukov, 6 years ago)
  • wp-includes/class-wp-theme.php

     
    794794         * @return string URL to the stylesheet directory.
    795795         */
    796796        public function get_stylesheet_directory_uri() {
    797                 return $this->get_theme_root_uri() . '/' . $this->stylesheet;
     797                return $this->get_theme_root_uri() . '/' . rawurlencode( $this->stylesheet );
    798798        }
    799799
    800800        /**
     
    814814                else
    815815                        $theme_root_uri = $this->get_theme_root_uri();
    816816
    817                 return $theme_root_uri . '/' . $this->template;
     817                return $theme_root_uri . '/' . rawurlencode( $this->template );
    818818        }
    819819
    820820        /**