#33319 closed enhancement (fixed)
Customizer header image crop uses static URL when refreshing UI after crop.
Reported by: | polevaultweb | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 3.9 |
Component: | Customize | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
Once an image crop has been made for the Header image inside the Customizer, the new cropped attachment is created with the URL as the post content and this is passed back to the UI with JS, to update the header img.
However, if you reload the page the header images are retrieved using wp_get_attachment_url()
which allows other plugins to filter on the URL.
The URL passed to the UI after crop should be created with the same function. Is there any need for the URL to also be stored in post_content for the attachment?
Attachments (1)
Change History (9)
Note: See
TracTickets for help on using
tickets.
Use wp_get_attachment_url for the cropped image URL