syntaxhighlighter icon indicating copy to clipboard operation
syntaxhighlighter copied to clipboard

BugFix for double encoding of posts that get trashed and restored

Open ghost opened this issue 12 years ago • 1 comments

Description:

Trashing and untrashing posts double encodes SH shortcode content

Steps to reproduce:

  1. Create a post
  2. In the text tab of tiny mce add a SH shortcode with in it.
  3. Save the post
  4. Trash the post
  5. Undo or Restore the post
  6. Edit the post (to view double encoding)

Example short code `[php]

[/php]`

Expected output:

The user should be able trash and restore without altering the content of the shortcode

Actual Output:

The content of the shortcode get double encoded.

Tested with: WordPress 3.6-beta3-24430

ghost avatar Jun 08 '13 18:06 ghost

I don't think this is an issue any more, at least with Gutenberg blocks.

donnchawp avatar Oct 07 '19 14:10 donnchawp