Make WordPress Core

Changeset 48137


Ignore:
Timestamp:
06/23/2020 10:41:52 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Synchronize descriptions for some theme functions:

  • get_stylesheet_directory()
  • get_stylesheet_directory_uri()
  • get_template_directory()
  • get_template_directory_uri()

See #49572.

File:
1 edited

Legend:

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

    r48121 r48137  
    155155
    156156/**
    157  * Retrieve name of the current stylesheet.
     157 * Retrieves name of the current stylesheet.
    158158 *
    159159 * The theme name that the administrator has currently set the front end theme
     
    179179
    180180/**
    181  * Retrieve stylesheet directory path for current theme.
     181 * Retrieves stylesheet directory path for current theme.
    182182 *
    183183 * @since 1.5.0
    184184 *
    185  * @return string Path to current theme directory.
     185 * @return string Path to current theme stylesheet directory.
    186186 */
    187187function get_stylesheet_directory() {
     
    203203
    204204/**
    205  * Retrieve stylesheet directory URI.
     205 * Retrieves stylesheet directory URI for current theme.
    206206 *
    207207 * @since 1.5.0
     
    227227
    228228/**
    229  * Retrieves the URI of current theme stylesheet.
     229 * Retrieves stylesheet URI for current theme.
    230230 *
    231231 * The stylesheet file name is 'style.css' which is appended to the stylesheet directory URI path.
     
    295295
    296296/**
    297  * Retrieve name of the current theme.
     297 * Retrieves name of the current theme.
    298298 *
    299299 * @since 1.5.0
     
    313313
    314314/**
    315  * Retrieve current theme directory.
     315 * Retrieves template directory path for current theme.
    316316 *
    317317 * @since 1.5.0
    318318 *
    319  * @return string Template directory path.
     319 * @return string Path to current theme template directory.
    320320 */
    321321function get_template_directory() {
     
    329329     * @since 1.5.0
    330330     *
    331      * @param string $template_dir The URI of the current theme directory.
     331     * @param string $template_dir The path of the current theme directory.
    332332     * @param string $template     Directory name of the current theme.
    333333     * @param string $theme_root   Absolute path to the themes directory.
     
    337337
    338338/**
    339  * Retrieve theme directory URI.
     339 * Retrieves template directory URI for current theme.
    340340 *
    341341 * @since 1.5.0
    342342 *
    343  * @return string Template directory URI.
     343 * @return string URI to current theme template directory.
    344344 */
    345345function get_template_directory_uri() {
Note: See TracChangeset for help on using the changeset viewer.