[wp-trac] [WordPress Trac] #56581: Wrong doc in WP_Block_Parser class

WordPress Trac noreply at wordpress.org
Sat Sep 17 16:47:32 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):

 In [changeset:"54193" 54193]:
 {{{
 #!CommitTicketReference repository="" revision="54193"
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56581#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list