Opened 17 years ago
Closed 17 years ago
#5088 closed defect (bug) (fixed)
Visual Editor Disabled, Editing a Page With HTML Encoded Entities <span> changes them into <> changing the content
Reported by: | foolswisdom | Owned by: | |
---|---|---|---|
Milestone: | 2.3.1 | Priority: | highest omg bbq |
Severity: | critical | Version: | 2.3 |
Component: | Administration | Keywords: | needs-patch |
Focuses: | Cc: |
Description (last modified by )
Editing a Page With HTML Encoded Entities <span> changes them into <> changing the content
ENV: WP trunk (2.3+r6172)
User Profile > Uncheck (DISABLE) Use the visual editor when writing
Repro: Always
Steps:
- Create a page with Page Content of
<span>
- Publish the page
- Edit the page again
ACTUALLY RESULT:
The Page Content is now
<span>
EXPECTED RESULT:
The Page Content should still be
<span>
Change History (14)
#2
@
17 years ago
- Keywords noTinyMCE added
- Summary changed from Editing a Page With HTML Encoded Entities <span> changes them into <> changing the content to Visual Editor Disabled, Editing a Page With HTML Encoded Entities <span> changes them into <> changing the content
#5
@
17 years ago
bglickstein, please try to isolate the "other direction" issue you are encountering and write a bug report with repro steps. Posts not pages? Can you only repro it with posts made from XML-RPC? What blog client are you using?
#6
@
17 years ago
I'm unable to reproduce this using latest SVN. I did exactly as the original ticket described and I got the exact code I originally entered after editing the post.
#8
@
17 years ago
- Component changed from General to Administration
- Keywords needs-patch added; noTinyMCE removed
- Priority changed from high to highest omg bbq
#10
@
17 years ago
This seems to be a core bug. It is always reproducible without any active plugins on 2.3. I managed to get this working by adding the format_to_edit() and apply_filters() lines taken from the same function on 2.2.3 to the get_post_to_edit() found in wp-admin/includes/post.php at line 162 on WP2.3. Since I am not familiar with the design of WP and the changes that took place between 2.2.3 and 2.3 this might be a very wrong way of fixing this; this is why I am not attaching a patch here. In any case, I hope it helps someone to find a better solution.
As I described in my original report, issue #5084, this also happens in the other direction: non-encoded HTML entities become encoded.