Opened 11 years ago
Closed 11 years ago
#35081 closed defect (bug) (fixed)
Missing Change Theme button when there are only two themes available
| Reported by: | igmoweb | Owned by: | westonruter |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4.1 |
| Component: | Customize | Version: | 4.4 |
| Severity: | normal | Keywords: | commit fixed-major |
| Cc: | Focuses: |
Description
When you have two themes in your installation, Change Theme button in Customizer is missing. I guess this is not a expected behavior, isn't it?
My thoughts:
It looks like in class-wp-customize-themes-section.php, line no. 49:
if ( count( $this->controls ) > 1 )
$this->controls does not include the current theme in the list. So there are two easy approaches for this:
- Make the condition "> 0"
- Add the current theme as a control in class-wp-customize-manager.php
Bear in mind that in a multisite, you want to display the network activated Themes, not all the themes, just in case something extra is needed for this fix in a Multisite
Attachments (1)
Change History (8)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
See #34549 for where this was originally introduced.