Editor: Prevent HTML decoding on by setting the proper editor context.

Props: sstoqnov.

Built from https://develop.svn.wordpress.org/trunk@47948


git-svn-id: http://core.svn.wordpress.org/trunk@47720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
whyisjake 2020-06-10 17:21:20 +00:00
parent 2ae3b3b801
commit 7e9267567f
2 changed files with 2 additions and 2 deletions

View File

@ -3233,7 +3233,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

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-alpha-47947';
$wp_version = '5.5-alpha-47948';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.