Make WordPress Core

Changeset 50529


Ignore:
Timestamp:
03/13/2021 10:23:56 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Add missing @since tags for item_link and item_link_description post type and taxonomy labels.

Follow-up to [50527].

See #52688.

Location:
trunk/src/wp-includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-block-type.php

    r50527 r50529  
    102102    /**
    103103     * Block variations.
     104     *
    104105     * @since 5.8.0
    105106     * @var array
  • trunk/src/wp-includes/post.php

    r50527 r50529  
    17231723 *              `item_scheduled`, and `item_updated` labels.
    17241724 * @since 5.7.0 Added the `filter_by_date` label.
     1725 * @since 5.8.0 Added the `item_link` and `item_link_description` labels.
    17251726 *
    17261727 * @access private
     
    17301731 */
    17311732function get_post_type_labels( $post_type_object ) {
    1732     $nohier_vs_hier_defaults                  = array(
     1733    $nohier_vs_hier_defaults = array(
    17331734        'name'                     => array( _x( 'Posts', 'post type general name' ), _x( 'Pages', 'post type general name' ) ),
    17341735        'singular_name'            => array( _x( 'Post', 'post type singular name' ), _x( 'Page', 'post type singular name' ) ),
     
    17701771        ),
    17711772    );
     1773
    17721774    $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
    17731775
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php

    r50527 r50529  
    363363        }
    364364
    365         //rest_validate_value_from_schema doesn't understand $refs, pull out reused definitions for readability.
     365        // rest_validate_value_from_schema doesn't understand $refs, pull out reused definitions for readability.
    366366        $inner_blocks_definition = array(
    367367            'description' => __( 'The list of inner blocks used in the example.' ),
  • trunk/src/wp-includes/taxonomy.php

    r50527 r50529  
    539539 * @since 4.9.0 Added the `most_used` and `back_to_items` labels.
    540540 * @since 5.7.0 Added the `filter_by_item` label.
     541 * @since 5.8.0 Added the `item_link` and `item_link_description` labels.
    541542 *
    542543 * @param WP_Taxonomy $tax Taxonomy object.
     
    580581 *                                              Default 'Tag Link'/'Category Link'.
    581582 *     @type string $item_link_description      Used in the block editor. Description for a navigation link block
    582  *                                              variation. Default 'A link to a tag.'/'A link to a category'.
     583 *                                              variation. Default 'A link to a tag'/'A link to a category'.
    583584 * }
    584585 */
     
    627628        ),
    628629    );
     630
    629631    $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
    630632
Note: See TracChangeset for help on using the changeset viewer.