[wp-trac] [WordPress Trac] #32783: Ajax issue in the customizer when previewing a different theme
WordPress Trac
noreply at wordpress.org
Wed Jun 24 20:14:25 UTC 2015
#32783: Ajax issue in the customizer when previewing a different theme
----------------------------------------+-----------------------------
Reporter: Fab1en | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 4.1
Severity: normal | Keywords:
Focuses: javascript, administration |
----------------------------------------+-----------------------------
When a theme is activated, and another one is previewed using the
customizer live preview, ajax requests are run against the old theme, not
the one being previewed.
The easiest way to see this issue is to use the Header Image cropping
function included in core.
1. Install and activate a theme that has no `custom-header` feature (for
example [https://wordpress.org/themes/modern-estate/ Modern Estate])
2. Go to the customizer, click on the change button to choose a new
theme (for example, TwentyFifteen
3. Use the Header Image panel to select and crop an image
4. You get the following error : `There has been an error cropping your
image.`
5. Activate TwentyFifteen and crop the same image again : error has
disappeared
If a theme defines specific ajax actions, those actions will not be
available in the live preview until the theme is really activated.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32783>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list