Opened 9 years ago
Closed 9 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.9 |
| Component: | Widgets | Version: | 4.9 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
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: