#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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.4 |
| Component: | Customize | Version: | 5.3 |
| Severity: | minor | Keywords: | good-first-bug has-patch 2nd-opinion |
| Cc: | Focuses: | docs |
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)
This ticket was mentioned in Slack in #core by sergey. View the logs.
7 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Updated WP_Customize_Manager::add_control args-documentation to be equal to WP_Customize_Control::construct