Make WordPress Core

Changeset 47948


Ignore:
Timestamp:
06/10/2020 04:39:31 PM (4 years ago)
Author:
whyisjake
Message:

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

Props: sstoqnov.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r47913 r47948  
    32343234    ?>
    32353235    </label>
    3236     <?php wp_editor( $post->post_content, 'attachment_content', $editor_args ); ?>
     3236    <?php wp_editor( format_to_edit( $post->post_content ), 'attachment_content', $editor_args ); ?>
    32373237
    32383238    </div>
Note: See TracChangeset for help on using the changeset viewer.