#37711 closed defect (bug) (duplicate)
The characters ' and " break the sidebar in preview mode if entered into the editor field
Reported by: | amypink | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.6 |
Component: | Post Thumbnails | Keywords: | |
Focuses: | Cc: |
Description
After updating to 4.6, if we enter the characters ' or " (as in hyperlinks) into the editor field (disabled visual editor), save, and preview the post, the recent posts widget in our sidebar shows the wrong thumbnail(s). Only the featured image of the current post is shown. If we just type "This is a test" into the editor, the recent posts thumbnails are normal.
Change History (3)
#1
@
8 years ago
- Component changed from Editor to Post Thumbnails
- Focuses administration removed
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
#3
in reply to:
↑ 2
@
8 years ago
At least from my experience with the other ticket, what determined whether or not the thumbnail issue occurred was whether or not a preview_nonce was triggered in the preview URL, not any particular characters. That brought along a _thumbnail_id in the URL as well, and that's what screwed up the thumbnails. So, for instance, a quick preview right after a new post was created (or sometimes saved as a draft?) wouldn't do it.
Hey there,
Thanks for opening this ticket and welcome to WordPress trac!
This issue already popped up yesterday and we have a fix ready in #37697. It will be included in WordPress 4.6.1.
Just so you know, this has nothing to do with typing specific characters in the editor. That bug occurs when previewing a post that has a thumbnail, no matter what content it has. It doesn't happen anywhere else, only during preview.