WordPress.org

Make WordPress Core

Opened 3 months ago

Closed 3 months ago

#53518 closed defect (bug) (fixed)

Add missing `api_version` to WP_Block_Type arg list

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

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.


3 months ago

  • 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
3 months ago

  • Milestone changed from Awaiting Review to 5.8

#3 @SergeyBiryukov
3 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

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.