#31896 closed defect (bug) (fixed)
Customizer Theme Switcher: Live previewing a theme breaks on subfolder installs
Reported by: | ericlewis | Owned by: | ocean90 |
---|---|---|---|
Milestone: | 4.2 | Priority: | high |
Severity: | normal | Version: | 4.2 |
Component: | Customize | Keywords: | has-patch |
Focuses: | Cc: |
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
@
10 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
@
10 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.
In attachment:31889.mp4, a screencast of the bug.