diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index c4090174fa..d0d5a94c52 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -2825,8 +2825,11 @@ function edit_form_image_editor( $post ) { - post_content, 'attachment_content', $editor_args ); ?> + } + + ?> + + post_content ), 'attachment_content', $editor_args ); ?> - get( 'Name' ) ? $broken_theme->display( 'Name' ) : $broken_theme->get_stylesheet(); ?> + get( 'Name' ) ? $broken_theme->display( 'Name' ) : esc_html( $broken_theme->get_stylesheet() ); ?> errors()->get_error_message(); ?>