[wp-trac] [WordPress Trac] #49572: Docblock improvements for 5.5

WordPress Trac noreply at wordpress.org
Fri Apr 10 09:29:52 UTC 2020


#49572: Docblock improvements for 5.5
----------------------------+---------------------
 Reporter:  SergeyBiryukov  |       Owner:  (none)
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  5.5
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  docs
----------------------------+---------------------

Comment (by marekdedic):

 `WP_Customize_Partial::$settings` can be `string[]` instead of just
 `array`.

 `WP_Customize_Partial::__construct()` parameter `$args` should be
 something like

 {{{
 @param array $args {
     @type string   $type
     @type string   $selector
     @type string[] $settings
     @type string   $primary_setting
     @type string   $capability
     @type callable $render_callback
     @type bool     $container_inclusive
     @type bool     $fallback_refresh
 }
 }}}

 `WP_Customize_Selective_Refresh::add_partial()` argument `$args` should
 just reference `WP_Customize_Partial::__construct()` instead of being
 explicit.

 Thanks,
 Marek

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


More information about the wp-trac mailing list