Changeset 46392
- Timestamp:
- 10/04/2019 11:20:01 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r46327 r46392 108 108 * @return WP_Theme Theme object. Be sure to check the object's exists() method if you need to confirm the theme's existence. 109 109 */ 110 function wp_get_theme( $stylesheet = null, $theme_root = null) {110 function wp_get_theme( $stylesheet = '', $theme_root = '' ) { 111 111 global $wp_theme_directories; 112 112 … … 567 567 * @global array $wp_theme_directories 568 568 * 569 * @param string $stylesheet_or_template The stylesheet or template name of the theme 570 * @return string Theme path. 571 */ 572 function get_theme_root( $stylesheet_or_template = false ) { 569 * @param string $stylesheet_or_template Optional. The stylesheet or template name of the theme. 570 * Default is to leverage the main theme root. 571 * @return string Themes directory path. 572 */ 573 function get_theme_root( $stylesheet_or_template = '' ) { 573 574 global $wp_theme_directories; 574 575 … … 609 610 * @global array $wp_theme_directories 610 611 * 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, preventing614 * the need for a get_raw_theme_root() call. Default value false.615 * @return string Themes URI.616 */ 617 function get_theme_root_uri( $stylesheet_or_template = false, $theme_root = false) {612 * @param string $stylesheet_or_template Optional. The stylesheet or template name of the theme. 613 * Default is to leverage the main theme root. 614 * @param string $theme_root Optional. The theme root for which calculations will be based, 615 * preventing the need for a get_raw_theme_root() call. Default empty. 616 * @return string Themes directory URI. 617 */ 618 function get_theme_root_uri( $stylesheet_or_template = '', $theme_root = '' ) { 618 619 global $wp_theme_directories; 619 620 … … 648 649 * @param string $theme_root_uri The URI for themes directory. 649 650 * @param string $siteurl WordPress web address which is set in General Options. 650 * @param string $stylesheet_or_template Stylesheet or template name of the theme.651 * @param string $stylesheet_or_template The stylesheet or template name of the theme. 651 652 */ 652 653 return apply_filters( 'theme_root_uri', $theme_root_uri, get_option( 'siteurl' ), $stylesheet_or_template ); … … 660 661 * @global array $wp_theme_directories 661 662 * 662 * @param string $stylesheet_or_template The stylesheet or template name of the theme 663 * @param string $stylesheet_or_template The stylesheet or template name of the theme. 663 664 * @param bool $skip_cache Optional. Whether to skip the cache. 664 665 * Defaults to false, meaning the cache is used. 665 * @return string Theme root 666 * @return string Theme root. 666 667 */ 667 668 function get_raw_theme_root( $stylesheet_or_template, $skip_cache = false ) { … … 3181 3182 * @return string 3182 3183 */ 3183 function wp_customize_url( $stylesheet = null) {3184 function wp_customize_url( $stylesheet = '' ) { 3184 3185 $url = admin_url( 'customize.php' ); 3185 3186 if ( $stylesheet ) {
Note: See TracChangeset
for help on using the changeset viewer.