[wp-trac] [WordPress Trac] #52795: Wrong DocBlock for unregister_block_style

WordPress Trac noreply at wordpress.org
Fri Mar 12 20:03:59 UTC 2021


#52795: Wrong DocBlock for unregister_block_style
-------------------------+----------------------------
 Reporter:  kraftner     |       Owner:  davidbaumwald
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  5.8
Component:  General      |     Version:  trunk
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:  docs
-------------------------+----------------------------
Changes (by davidbaumwald):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50528" 50528]:
 {{{
 #!CommitTicketReference repository="" revision="50528"
 Docs: Correct `unregister_block_style` @param for `$block_name`.

 In `unregister_block_style`, the `$block_name` parameter was documented as
 an array.  This change corrects the type to `string`, as that's what is
 expected in `WP_Block_Styles_Registry->unregister`.

 Props kraftner.
 Fixes #52795.
 }}}

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


More information about the wp-trac mailing list