[wp-trac] [WordPress Trac] #56581: Wrong doc in WP_Block_Parser class
WordPress Trac
noreply at wordpress.org
Sat Sep 17 17:05:03 UTC 2022
#56581: Wrong doc in WP_Block_Parser class
--------------------------+-----------------------------
Reporter: Chouby | Owner: SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 6.1
Component: Editor | Version: 5.0
Severity: trivial | Resolution:
Keywords: has-patch | Focuses: docs
--------------------------+-----------------------------
Comment (by SergeyBiryukov):
Replying to [comment:7 SergeyBiryukov]:
> I believe we can use the `WP_Block_Parser_Block[][]` notation for that
(with extra square brackets), there is a precedent for that in core as of
[53058].
Hmm, scratch that. Checking the type of `WP_Block_Parser::$output`, it is
an array of arrays of various values and not an array of arrays of
`WP_Block_Parser_Block` objects as I thought initially.
[attachment:"56581.patch"] is correct.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56581#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list