WordPress.org

Make WordPress Core

Changeset 46327


Ignore:
Timestamp:
09/26/2019 08:20:51 PM (2 months ago)
Author:
whyisjake
Message:

Themes: Docblock cleanup for get_theme_root_uri()

In the function docblock of get_theme_root_uri(), the argument types of $stylesheet_or_template and $theme_root do not match. Default values of arguments are boolean but in function doc they are stated as strings.

Props subrataemfluence, williampatton, garrett-eclipse.
Fixes #44397.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r46270 r46327  
    609609 * @global array $wp_theme_directories
    610610 *
    611  * @param string $stylesheet_or_template Optional. The stylesheet or template name of the theme.
    612  *                                       Default is to leverage the main theme root.
    613  * @param string $theme_root             Optional. The theme root for which calculations will be based, preventing
    614  *                                       the need for a get_raw_theme_root() call.
     611 * @param bool|string $stylesheet_or_template Optional. The stylesheet or template name of the theme.
     612 *                                            Default value false, to use the main theme root.
     613 * @param bool|string $theme_root             Optional. The theme root for which calculations will be based, preventing
     614 *                                            the need for a get_raw_theme_root() call. Default value false.
    615615 * @return string Themes URI.
    616616 */
Note: See TracChangeset for help on using the changeset viewer.