Customizer inconsistent contextual behavior
|Reported by:||dgwyer||Owned by:||ocean90|
When adding more than one contextual customizer control with I'm seeing inconsistent behavior.
For example, I'm using the bare bones theme created by Otto available here:
All I've done in functions.php is to add two 'active_callback' lines, one for each customizer control:
'active_callback' => '__return_false' 'active_callback' => '__return_true'
Using these core WordPress callbacks only one of the controls should be visible but when the customizer loads both controls are visible.
If you remove one of the controls in functions.php then the remaining control is visible (or not) depending on the contextual callback return value, as expected.
Note: In full themes this issue seems to be mainly when the customizer first loads. When clicking links inside the customizer preview window the customizer controls seem to respect their contextual settings, apart from the initial load.
Change History (13)
2 years ago
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 4.1
- Owner set to westonruter
- Status changed from new to assigned
2 years ago
- Keywords has-patch added; needs-patch removed
- Owner changed from westonruter to ocean90
- Status changed from assigned to reviewing