PluginProbe
Elementor Website Builder – more than just a page builder / 3.34.0-beta1
Elementor Website Builder – more than just a page builder v3.34.0-beta1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
← All changes | includes/widgets/text-editor.php +2 -14 4.1.3 → 3.34.0-beta1 View file →
@@ -605,11 +605,10 @@
605 605 ?>
606 606 <?php if ( $should_render_inline_editing ) { ?>
607 607 <div <?php $this->print_render_attribute_string( 'editor' ); ?>>
608 608 <?php } ?>
609 - <?php // PHPCS - DO NOT REMOVE THIS ECHO - THE MAIN TEXT OF A WIDGET SHOULD NOT BE ESCAPED!
610 - echo $editor_content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
611 - ?>
609 + <?php // PHPCS - the main text of a widget should not be escaped.
610 + echo $editor_content; // phpcs:ignore WordPress.Security.EscapeOutput ?>
612 611 <?php if ( $should_render_inline_editing ) { ?>
613 612 </div>
614 613 <?php } ?>
615 614 <?php
@@ -635,19 +634,8 @@
635 634 *
636 635 * @since 2.9.0
637 636 * @access protected
638 637 */
639 - public function render_markdown(): string {
640 - $editor_content = $this->get_settings_for_display( 'editor' );
641 - $editor_content = $this->parse_text_editor( $editor_content );
642 -
643 - if ( empty( $editor_content ) ) {
644 - return '';
645 - }
646 -
647 - return \Elementor\Modules\MarkdownRender\Html_To_Markdown::convert( $editor_content );
648 - }
649 -
650 638 protected function content_template() {
651 639 ?>
652 640 <#
653 641 if ( '' === settings.editor ) {