WordPress.org

Make WordPress Core

Ticket #30797: 30797.patch

File 30797.patch, 1.2 KB (added by grapplerulrich, 4 years ago)
  • wp-includes/theme.php

     
    233233}
    234234
    235235/**
     236 * Retrieve URI of current theme/parent stylesheet.
     237 *
     238 * The stylesheet file name is 'style.css' which is appended to {@link
     239 * get_template_directory_uri() template directory URI} path.
     240 *
     241 * @since 4.4.0
     242 *
     243 * @return string URI to current theme/parent stylesheet.
     244 */
     245function get_template_stylesheet_uri() {
     246        $template_dir_uri       = get_template_directory_uri();
     247        $template_stylesheet_uri = $template_dir_uri . '/style.css';
     248        /**
     249         * Filter the URI of the current theme/parent stylesheet.
     250         *
     251         * @since 4.4.0
     252         *
     253         * @param string $template_stylesheet_uri Template stylesheet URI for the current theme/parent theme.
     254         * @param string $template_dir_uri        Template directory URI for the current theme/parent theme.
     255         */
     256        return apply_filters( 'template_stylesheet_uri', $template_stylesheet_uri, $template_dir_uri );
     257}
     258
     259/**
    236260 * Retrieve localized stylesheet URI.
    237261 *
    238262 * The stylesheet directory for the localized stylesheet files are located, by