diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index aa9b7dd6fd..8517ca1936 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -2831,8 +2831,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(); ?>