Make WordPress Core


Ignore:
Timestamp:
12/17/2020 02:55:37 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.
Fixes #51958.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/functions.php

    r49726 r49826  
    77 * @package WordPress
    88 * @subpackage Twenty_Twenty_One
    9  * @since 1.0.0
     9 * @since Twenty Twenty-One 1.0
    1010 */
    1111
     
    2323     * as indicating support for post thumbnails.
    2424     *
    25      * @since 1.0.0
     25     * @since Twenty Twenty-One 1.0
    2626     *
    2727     * @return void
     
    346346 * Register widget area.
    347347 *
    348  * @since 1.0.0
     348 * @since Twenty Twenty-One 1.0
    349349 *
    350350 * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
     
    373373 * Priority 0 to make it available to lower priority callbacks.
    374374 *
    375  * @since 1.0.0
     375 * @since Twenty Twenty-One 1.0
    376376 *
    377377 * @global int $content_width Content width.
     
    390390 * Enqueue scripts and styles.
    391391 *
    392  * @since 1.0.0
     392 * @since Twenty Twenty-One 1.0
    393393 *
    394394 * @return void
     
    450450 * Enqueue block editor script.
    451451 *
    452  * @since 1.0.0
     452 * @since Twenty Twenty-One 1.0
    453453 *
    454454 * @return void
     
    489489/** Enqueue non-latin language styles
    490490 *
    491  * @since 1.0.0
     491 * @since Twenty Twenty-One 1.0
    492492 *
    493493 * @return void
     
    535535 * Enqueue scripts for the customizer preview.
    536536 *
    537  * @since 1.0.0
     537 * @since Twenty Twenty-One 1.0
    538538 *
    539539 * @return void
     
    561561 * Enqueue scripts for the customizer.
    562562 *
    563  * @since 1.0.0
     563 * @since Twenty Twenty-One 1.0
    564564 *
    565565 * @return void
     
    580580 * Calculate classes for the main <html> element.
    581581 *
    582  * @since 1.0.0
     582 * @since Twenty Twenty-One 1.0
    583583 *
    584584 * @return void
     
    595595 * Add "is-IE" class to body if the user is on Internet Explorer.
    596596 *
    597  * @since 1.0.0
     597 * @since Twenty Twenty-One 1.0
    598598 *
    599599 * @return void
Note: See TracChangeset for help on using the changeset viewer.