#48343 closed defect (bug) (fixed)
$args documentation for WP_Customize_Control::__construct() and WP_Customize_Manager::add_control() don't match
Reported by: | marekdedic | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.4 | Priority: | normal |
Severity: | minor | Version: | 5.3 |
Component: | Customize | Keywords: | good-first-bug has-patch 2nd-opinion |
Focuses: | docs | Cc: |
Description
I believe the $args parameter should be the same for both methods, given how add_control() just calls the constructor.
https://developer.wordpress.org/reference/classes/wp_customize_control/__construct/
https://developer.wordpress.org/reference/classes/wp_customize_manager/add_control/
Attachments (1)
Change History (6)
#1
@
5 years ago
- Keywords needs-patch good-first-bug added
- Milestone changed from Awaiting Review to 5.4
This ticket was mentioned in Slack in #core by sergey. View the logs.
5 years ago
Note: See
TracTickets for help on using
tickets.
Updated WP_Customize_Manager::add_control args-documentation to be equal to WP_Customize_Control::construct