Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#53518 closed defect (bug) (fixed)

Add missing `api_version` to WP_Block_Type arg list

Reported by: mbabker Owned by: SergeyBiryukov
Priority: normal Milestone: 5.8
Component: Editor Version: 5.6
Severity: trivial Keywords: has-patch
Cc: Focuses: docs

Description

Since WordPress 5.6, the api_version can be specified when registering a block type, but this is not included in the list specified in the WP_Block_Type constructor.

Change History (3)

This ticket was mentioned in PR #1436 on WordPress/wordpress-develop by mbabker.


5 years ago
#1

  • Keywords has-patch added

Since WordPress 5.6, the api_version can be specified when registering a block type, but this is not included in the list specified in the WP_Block_Type constructor. This PR adds the argument to the list.

Fixes https://core.trac.wordpress.org/ticket/53518

#2 @SergeyBiryukov
5 years ago

  • Milestone Awaiting Review5.8

#3 @SergeyBiryukov
5 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

In 51244:

Docs: Document api_version and variations properties in WP_Block_Type::__construct().

Add @since tags for all properties added in WordPress 5.5, 5.6, and 5.8.

Follow-up to [47875], [48117], [49224], [50297], [50419], [50527].

Props mbabker.
Fixes #53518.

Note: See TracTickets for help on using tickets.