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

Follow-up to [50527].

See #52688.
Built from https://develop.svn.wordpress.org/trunk@50529


git-svn-id: http://core.svn.wordpress.org/trunk@50142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-03-13 10:25:06 +00:00
parent fb8c18e541
commit cb55990e50
5 changed files with 9 additions and 4 deletions

View File

@ -101,6 +101,7 @@ class WP_Block_Type {
/** /**
* Block variations. * Block variations.
*
* @since 5.8.0 * @since 5.8.0
* @var array * @var array
*/ */

View File

@ -1722,6 +1722,7 @@ function _post_type_meta_capabilities( $capabilities = null ) {
* @since 5.0.0 Added the `item_published`, `item_published_privately`, `item_reverted_to_draft`, * @since 5.0.0 Added the `item_published`, `item_published_privately`, `item_reverted_to_draft`,
* `item_scheduled`, and `item_updated` labels. * `item_scheduled`, and `item_updated` labels.
* @since 5.7.0 Added the `filter_by_date` label. * @since 5.7.0 Added the `filter_by_date` label.
* @since 5.8.0 Added the `item_link` and `item_link_description` labels.
* *
* @access private * @access private
* *
@ -1769,6 +1770,7 @@ function get_post_type_labels( $post_type_object ) {
_x( 'A link to a page.', 'navigation link block description' ), _x( 'A link to a page.', 'navigation link block description' ),
), ),
); );
$nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
$labels = _get_custom_object_labels( $post_type_object, $nohier_vs_hier_defaults ); $labels = _get_custom_object_labels( $post_type_object, $nohier_vs_hier_defaults );

View File

@ -362,7 +362,7 @@ class WP_REST_Block_Types_Controller extends WP_REST_Controller {
return $this->add_additional_fields_schema( $this->schema ); return $this->add_additional_fields_schema( $this->schema );
} }
//rest_validate_value_from_schema doesn't understand $refs, pull out reused definitions for readability. // rest_validate_value_from_schema doesn't understand $refs, pull out reused definitions for readability.
$inner_blocks_definition = array( $inner_blocks_definition = array(
'description' => __( 'The list of inner blocks used in the example.' ), 'description' => __( 'The list of inner blocks used in the example.' ),
'type' => 'array', 'type' => 'array',

View File

@ -538,6 +538,7 @@ function unregister_taxonomy( $taxonomy ) {
* @since 4.4.0 Added the `items_list_navigation` and `items_list` labels. * @since 4.4.0 Added the `items_list_navigation` and `items_list` labels.
* @since 4.9.0 Added the `most_used` and `back_to_items` labels. * @since 4.9.0 Added the `most_used` and `back_to_items` labels.
* @since 5.7.0 Added the `filter_by_item` label. * @since 5.7.0 Added the `filter_by_item` label.
* @since 5.8.0 Added the `item_link` and `item_link_description` labels.
* *
* @param WP_Taxonomy $tax Taxonomy object. * @param WP_Taxonomy $tax Taxonomy object.
* @return object { * @return object {
@ -579,7 +580,7 @@ function unregister_taxonomy( $taxonomy ) {
* @type string $item_link Used in the block editor. Title for a navigation link block variation. * @type string $item_link Used in the block editor. Title for a navigation link block variation.
* Default 'Tag Link'/'Category Link'. * Default 'Tag Link'/'Category Link'.
* @type string $item_link_description Used in the block editor. Description for a navigation link block * @type string $item_link_description Used in the block editor. Description for a navigation link block
* variation. Default 'A link to a tag.'/'A link to a category'. * variation. Default 'A link to a tag'/'A link to a category'.
* } * }
*/ */
function get_taxonomy_labels( $tax ) { function get_taxonomy_labels( $tax ) {
@ -626,6 +627,7 @@ function get_taxonomy_labels( $tax ) {
_x( 'A link to a category.', 'navigation link block description' ), _x( 'A link to a category.', 'navigation link block description' ),
), ),
); );
$nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
$labels = _get_custom_object_labels( $tax, $nohier_vs_hier_defaults ); $labels = _get_custom_object_labels( $tax, $nohier_vs_hier_defaults );

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.8-alpha-50528'; $wp_version = '5.8-alpha-50529';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.