Make WordPress Core


Ignore:
Timestamp:
12/17/2020 03:08:06 PM (4 years ago)
Author:
desrosj
Message:

Twenty Twenty-One: Correct @since inline documentation tags.

Previously, 1.0.0 was used for the version. This is inconsistent with the versioning used in the other default themes, which use use X.X and not X.X.X.

This change corrects all 1.0.0 occurrences to 1.0, and adds the additional context of Twenty Twenty-One to avoid confusion with WordPress 1.0.

Props SergeyBiryukov, poena.
Merges [49826] to the 5.6 branch.
Fixes #51958.

Location:
branches/5.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.6

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

    r49574 r49829  
    55 * @package WordPress
    66 * @subpackage Twenty_Twenty_One
    7  * @since 1.0.0
     7 * @since Twenty Twenty-One 1.0
    88 */
    99
     
    1111 * Adds custom classes to the array of body classes.
    1212 *
    13  * @since 1.0.0
     13 * @since Twenty Twenty-One 1.0
    1414 *
    1515 * @param array $classes Classes for the body element.
     
    4242 * Adds custom class to the array of posts classes.
    4343 *
    44  * @since 1.0.0
     44 * @since Twenty Twenty-One 1.0
    4545 *
    4646 * @param array $classes An array of CSS classes.
     
    5858 * Add a pingback url auto-discovery header for single posts, pages, or attachments.
    5959 *
    60  * @since 1.0.0
     60 * @since Twenty Twenty-One 1.0
    6161 *
    6262 * @return void
     
    7272 * Remove the `no-js` class from body if JS is supported.
    7373 *
    74  * @since 1.0.0
     74 * @since Twenty Twenty-One 1.0
    7575 *
    7676 * @return void
     
    8484 * Changes comment form default fields.
    8585 *
    86  * @since 1.0.0
     86 * @since Twenty Twenty-One 1.0
    8787 *
    8888 * @param array $defaults The form defaults.
     
    102102 * Determines if post thumbnail can be displayed.
    103103 *
    104  * @since 1.0.0
     104 * @since Twenty Twenty-One 1.0
    105105 *
    106106 * @return bool
     
    116116 * Returns the size for avatars used in the theme.
    117117 *
    118  * @since 1.0.0
     118 * @since Twenty Twenty-One 1.0
    119119 *
    120120 * @return int
     
    165165     * Add a title to posts and pages that are missing titles.
    166166     *
    167      * @since 1.0.0
     167     * @since Twenty Twenty-One 1.0
    168168     *
    169169     * @param string $title The title.
     
    180180 * Gets the SVG code for a given icon.
    181181 *
    182  * @since 1.0.0
     182 * @since Twenty Twenty-One 1.0
    183183 *
    184184 * @param string $group The icon group.
     
    324324 * Print the first instance of a block in the content, and then break away.
    325325 *
    326  * @since 1.0.0
     326 * @since Twenty Twenty-One 1.0
    327327 *
    328328 * @param string      $block_name The full block type name, or a partial match.
     
    387387 * Retrieve protected post password form content.
    388388 *
    389  * @since 1.0.0
     389 * @since Twenty Twenty-One 1.0
    390390 *
    391391 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
     
    406406 * Filters the list of attachment image attributes.
    407407 *
    408  * @since 1.0.0
     408 * @since Twenty Twenty-One 1.0
    409409 *
    410410 * @param array        $attr       Array of attribute values for the image markup, keyed by attribute name.
Note: See TracChangeset for help on using the changeset viewer.