Editor: Prevent HTML decoding on by setting the proper editor context.
Merges [47948] to the 5.4 branch. Props: sstoqnov. Built from https://develop.svn.wordpress.org/branches/5.4@47954 git-svn-id: http://core.svn.wordpress.org/branches/5.4@47726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0fe021801d
commit
72f6ea5d76
|
@ -3231,7 +3231,7 @@ function edit_form_image_editor( $post ) {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</label>
|
</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>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in New Issue