Docs: Correct `@since` tags for some block parser properties and methods.

This affects:
* `WP_Block_Parser::$empty_attrs`
* `WP_Block_Parser::next_token()`
* `WP_Block_Parser::freeform()`
* `WP_Block_Parser_Block::$innerContent`

The `@since` tags referred to early Gutenberg versions instead of WordPress core. These properties and methods were introduced in WordPress 5.0, so `5.0.0` is the correct version.

Some of the other `@since` tags are removed, as they are related to early Gutenberg development before it was merged into WordPress core, and are not relevant for core.

Follow-up to [43751], [43884], [43955] for the 5.0 branch, [44116], [44261], [44281] for trunk.

Props Chouby.
See #56581.
Built from https://develop.svn.wordpress.org/trunk@54193


git-svn-id: http://core.svn.wordpress.org/trunk@53752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2022-09-17 16:49:09 +00:00
parent b67e8e4dd9
commit 6435a4c9c7
2 changed files with 5 additions and 7 deletions

View File

@ -62,7 +62,7 @@ class WP_Block_Parser_Block {
* 'innerContent' => array( 'Before', null, 'Inner', null, 'After' ),
* )
*
* @since 4.2.0
* @since 5.0.0
* @var array
*/
public $innerContent;
@ -164,10 +164,9 @@ class WP_Block_Parser_Frame {
/**
* Class WP_Block_Parser
*
* Parses a document and constructs a list of parsed block objects
* Parses a document and constructs a list of parsed blocks.
*
* @since 5.0.0
* @since 4.0.0 returns arrays not objects, all attributes are arrays
*/
class WP_Block_Parser {
/**
@ -207,7 +206,7 @@ class WP_Block_Parser {
/**
* Empty associative array, here due to PHP quirks
*
* @since 4.4.0
* @since 5.0.0
* @var array empty associative array
*/
public $empty_attrs;
@ -395,7 +394,6 @@ class WP_Block_Parser {
*
* @internal
* @since 5.0.0
* @since 4.6.1 fixed a bug in attribute parsing which caused catastrophic backtracking on invalid block comments
* @return array
*/
function next_token() {
@ -468,7 +466,7 @@ class WP_Block_Parser {
* Returns a new block object for freeform HTML
*
* @internal
* @since 3.9.0
* @since 5.0.0
*
* @param string $innerHTML HTML content of block.
* @return WP_Block_Parser_Block freeform block object.

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.1-alpha-54192';
$wp_version = '6.1-alpha-54193';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.