[wp-trac] [WordPress Trac] #42270: PHPDoc blocks of register_widget and unregister_widget are not up-to-date

WordPress Trac noreply at wordpress.org
Thu Oct 19 01:20:27 UTC 2017


#42270: PHPDoc blocks of register_widget and unregister_widget are not up-to-date
--------------------------+-----------------------------
 Reporter:  behzod        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 `register_widget` and `unregister_widget` functions can accept either the
 name of a `WP_Widget` subclass or an instance of a `WP_Widget` subclass
 since 4.6.0 (see `WP_Widget_Factory::register()` and
 `WP_Widget_Factory::unregister()`) but the PHPDoc blocks are not up-to-
 date.

 Attaching a patch that improves the documentation. It also refactors
 functions per WP coding standards.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42270>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list