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/inc/menu-functions.php

    r49578 r49826  
    1010 * @package WordPress
    1111 * @subpackage Twenty_Twenty_One
    12  * @since 1.0.0
     12 * @since Twenty Twenty-One 1.0
    1313 */
    1414
     
    1717 * An icon is added using CSS depending on the value of aria-expanded.
    1818 *
    19  * @since 1.0.0
     19 * @since Twenty Twenty-One 1.0
    2020 *
    2121 * @param string $output Nav menu item start element.
     
    4343 * Detects the social network from a URL and returns the SVG code for its icon.
    4444 *
    45  * @since 1.0.0
     45 * @since Twenty Twenty-One 1.0
    4646 *
    4747 * @param string $uri Social link.
     
    8080 * Filters the arguments for a single nav menu item.
    8181 *
    82  * @since 1.0.0
     82 * @since Twenty Twenty-One 1.0
    8383 *
    8484 * @param stdClass $args  An object of wp_nav_menu() arguments.
Note: See TracChangeset for help on using the changeset viewer.