[wp-trac] [WordPress Trac] #56581: Wrong doc in WP_Block_Parser class
WordPress Trac
noreply at wordpress.org
Thu Sep 15 15:40:24 UTC 2022
#56581: Wrong doc in WP_Block_Parser class
--------------------------+-----------------------------
Reporter: Chouby | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 5.0
Severity: trivial | Keywords:
Focuses: docs |
--------------------------+-----------------------------
`WP_Block_Parser::parse()` is documented as returning
`WP_Block_Parser_Block[]` but it returns an array or arrays.
`WP_Block_Parser::$output` is also documented as being
`WP_Block_Parser_Block[]` but is also an array of arrays.
This is visible in several places of the `parse()` method where
`$this->output` is explicitely casted to an array.
Additionnally, I noticed that several `@since` seem to refer to Gütenberg
versions instead of WordPress versions (as version numbers are < 5.0.0).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56581>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list