Opened 7 years ago
Closed 7 years ago
#42270 closed defect (bug) (fixed)
PHPDoc blocks of register_widget and unregister_widget are not up-to-date
Reported by: | behzod | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | 4.9 |
Component: | Widgets | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
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.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 41942: