Skip to content
Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
desrosj committed Jun 10, 2020
1 parent 7e4bf4e commit 0977c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-admin/includes/media.php
Expand Up @@ -3231,7 +3231,7 @@ function edit_form_image_editor( $post ) {

?>
</label>
<?php wp_editor( $post->post_content, 'attachment_content', $editor_args ); ?>
<?php wp_editor( format_to_edit( $post->post_content ), 'attachment_content', $editor_args ); ?>

</div>
<?php
Expand Down

0 comments on commit 0977c0d

Please sign in to comment.