#31896 closed defect (bug) (fixed)
Customizer Theme Switcher: Live previewing a theme breaks on subfolder installs
| Reported by: | ericlewis | Owned by: | ocean90 |
|---|---|---|---|
| Priority: | high | Milestone: | 4.2 |
| Component: | Customize | Version: | 4.2 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Live previewing a theme on a subfolder install (e.g. site.com/wordpress) breaks, and will send you to a 404 page.
Attachments (3)
Change History (13)
#4
@
11 years ago
This is because of the way the URL is being built for the theme preview link.
I've modified this logic appropriately in attachment:31896.diff
#7
@
11 years ago
I think this can be simplified to set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ), see 31896.2.diff.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In attachment:31889.mp4, a screencast of the bug.