Docs: Synchronize descriptions for some theme functions:

* `get_stylesheet_directory()`
* `get_stylesheet_directory_uri()`
* `get_template_directory()`
* `get_template_directory_uri()`

See #49572.
Built from https://develop.svn.wordpress.org/trunk@48137


git-svn-id: http://core.svn.wordpress.org/trunk@47906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-06-23 10:43:09 +00:00
parent 69d46b2003
commit 0a2d2b93e6
2 changed files with 12 additions and 12 deletions

View File

@ -154,7 +154,7 @@ function is_child_theme() {
} }
/** /**
* Retrieve name of the current stylesheet. * Retrieves name of the current stylesheet.
* *
* The theme name that the administrator has currently set the front end theme * The theme name that the administrator has currently set the front end theme
* as. * as.
@ -178,11 +178,11 @@ function get_stylesheet() {
} }
/** /**
* Retrieve stylesheet directory path for current theme. * Retrieves stylesheet directory path for current theme.
* *
* @since 1.5.0 * @since 1.5.0
* *
* @return string Path to current theme directory. * @return string Path to current theme stylesheet directory.
*/ */
function get_stylesheet_directory() { function get_stylesheet_directory() {
$stylesheet = get_stylesheet(); $stylesheet = get_stylesheet();
@ -202,7 +202,7 @@ function get_stylesheet_directory() {
} }
/** /**
* Retrieve stylesheet directory URI. * Retrieves stylesheet directory URI for current theme.
* *
* @since 1.5.0 * @since 1.5.0
* *
@ -226,7 +226,7 @@ function get_stylesheet_directory_uri() {
} }
/** /**
* Retrieves the URI of current theme stylesheet. * Retrieves stylesheet URI for current theme.
* *
* The stylesheet file name is 'style.css' which is appended to the stylesheet directory URI path. * The stylesheet file name is 'style.css' which is appended to the stylesheet directory URI path.
* See get_stylesheet_directory_uri(). * See get_stylesheet_directory_uri().
@ -294,7 +294,7 @@ function get_locale_stylesheet_uri() {
} }
/** /**
* Retrieve name of the current theme. * Retrieves name of the current theme.
* *
* @since 1.5.0 * @since 1.5.0
* *
@ -312,11 +312,11 @@ function get_template() {
} }
/** /**
* Retrieve current theme directory. * Retrieves template directory path for current theme.
* *
* @since 1.5.0 * @since 1.5.0
* *
* @return string Template directory path. * @return string Path to current theme template directory.
*/ */
function get_template_directory() { function get_template_directory() {
$template = get_template(); $template = get_template();
@ -328,7 +328,7 @@ function get_template_directory() {
* *
* @since 1.5.0 * @since 1.5.0
* *
* @param string $template_dir The URI of the current theme directory. * @param string $template_dir The path of the current theme directory.
* @param string $template Directory name of the current theme. * @param string $template Directory name of the current theme.
* @param string $theme_root Absolute path to the themes directory. * @param string $theme_root Absolute path to the themes directory.
*/ */
@ -336,11 +336,11 @@ function get_template_directory() {
} }
/** /**
* Retrieve theme directory URI. * Retrieves template directory URI for current theme.
* *
* @since 1.5.0 * @since 1.5.0
* *
* @return string Template directory URI. * @return string URI to current theme template directory.
*/ */
function get_template_directory_uri() { function get_template_directory_uri() {
$template = str_replace( '%2F', '/', rawurlencode( get_template() ) ); $template = str_replace( '%2F', '/', rawurlencode( get_template() ) );

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.5-alpha-48136'; $wp_version = '5.5-alpha-48137';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.