[wp-trac] [WordPress Trac] #48640: Update docblocks of register block type related function and classes

WordPress Trac noreply at wordpress.org
Thu Feb 18 02:55:44 UTC 2021


#48640: Update docblocks of register block type related function and classes
----------------------------+-----------------------------
 Reporter:  ediamin         |       Owner:  SergeyBiryukov
     Type:  task (blessed)  |      Status:  reviewing
 Priority:  normal          |   Milestone:  5.7
Component:  Editor          |     Version:  5.0
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  docs
----------------------------+-----------------------------

Comment (by peterwilsoncc):

 `render_callback()` is optional and defaults to `null`, throughout it is
 documented only as `callable`. Should that be `callable|null`?

 For the `WP_Block` property descriptions it would be nice to include short
 summaries/titles for category, parent and keywords. There's a minor
 alignment issues on the constructors parameters, with further changes
 needed, I won't upload a fix.

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


More information about the wp-trac mailing list