Make WordPress Core


Ignore:
Timestamp:
07/02/2021 07:05:46 PM (4 years ago)
Author:
desrosj
Message:

Twenty Twenty-One: Improve documentation per the documentation standards:

  • Remove unnecessary @access tags that were previously removed from core.
  • Remove an empty line between @param and @return tags.
  • Correct alignment of @param tags.

Follow-up to [41161], [41162], [41168], [49216], [49220].

Props SergeyBiryukov.
Merges [51294] to the 5.8 branch.
See #52628, #53461.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/src/wp-content/themes/twentytwentyone/inc/template-functions.php

    r50841 r51319  
    1414 *
    1515 * @param array $classes Classes for the body element.
    16  *
    1716 * @return array
    1817 */
     
    4544 *
    4645 * @param array $classes An array of CSS classes.
    47  *
    4846 * @return array
    4947 */
     
    8785 *
    8886 * @param array $defaults The form defaults.
    89  *
    9087 * @return array
    9188 */
     
    168165     *
    169166     * @param string $title The title.
    170      *
    171167     * @return string
    172168     */
     
    183179 *
    184180 * @param string $group The icon group.
    185  * @param string $icon The icon.
    186  * @param int    $size The icon size in pixels.
    187  *
     181 * @param string $icon  The icon.
     182 * @param int    $size  The icon size in pixels.
    188183 * @return string
    189184 */
     
    196191 *
    197192 * @param string $calendar_output The generated HTML of the calendar.
    198  *
    199193 * @return string
    200194 */
     
    212206 *
    213207 * @param string $type Whether to return CSS for the "front-end", "block-editor" or "classic-editor".
    214  *
    215208 * @return string
    216209 */
     
    329322 *                                Example: `core/image`, `core-embed/*`.
    330323 * @param string|null $content    The content to search in. Use null for get_the_content().
    331  * @param int         $instances  How many instances of the block will be printed (max). Defaults to 1.
    332  *
     324 * @param int         $instances  How many instances of the block will be printed (max). Default  1.
    333325 * @return bool Returns true if a block was located & printed, otherwise false.
    334326 */
     
    416408 * @param string|array $size       Requested size. Image size or array of width and height values
    417409 *                                 (in that order). Default 'thumbnail'.
    418  *
    419410 * @return array
    420411 */
Note: See TracChangeset for help on using the changeset viewer.