Skip to content

Commit 0977c0d

Browse files
committed
Editor: Prevent HTML decoding on by setting the proper editor context.
Merges [47948] to the 5.4 branch. Props: sstoqnov. git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47954 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7e4bf4e commit 0977c0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/wp-admin/includes/media.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3231,7 +3231,7 @@ function edit_form_image_editor( $post ) {
32313231

32323232
?>
32333233
</label>
3234-
<?php wp_editor( $post->post_content, 'attachment_content', $editor_args ); ?>
3234+
<?php wp_editor( format_to_edit( $post->post_content ), 'attachment_content', $editor_args ); ?>
32353235

32363236
</div>
32373237
<?php

0 commit comments

Comments
 (0)