Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions syntaxhighlighter.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,10 @@ function encode_shortcode_contents_slashed_noquickedit( $content ) {
if ( ! empty( $_POST ) && !empty( $_POST['action'] ) && 'inline-save' == $_POST['action'] )
return $content;

// Trashed and untrashed posts (wp-admin) aren't decoded for display, so we don't need to encode them (again) either
if ( !empty( $_GET ) && !empty( $_GET['action'] ) && ( 'trash' == $_GET['action'] || 'untrash' == $_GET['action'] ) )
return $content;

return $this->encode_shortcode_contents_slashed( $content );
}

Expand Down