PluginProbe
Elementor Website Builder – more than just a page builder / 3.19.0-dev3
Elementor Website Builder – more than just a page builder v3.19.0-dev3
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 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/widgets/shortcode.php +0 -18 4.1.43.19.0-dev3 View file →
@@ -83,12 +83,8 @@
83 83 public function is_reload_preview_required() {
84 84 return true;
85 85 }
86 86
87 - public function has_widget_inner_wrapper(): bool {
88 - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' );
89 - }
90 -
91 87 /**
92 88 * Register shortcode widget controls.
93 89 *
94 90 * Adds different input fields to allow the user to change and customize the widget settings.
@@ -133,12 +129,8 @@
133 129 */
134 130 protected function render() {
135 131 $shortcode = $this->get_settings_for_display( 'shortcode' );
136 132
137 - if ( empty( $shortcode ) ) {
138 - return;
139 - }
140 -
141 133 $shortcode = do_shortcode( shortcode_unautop( $shortcode ) );
142 134 ?>
143 135 <div class="elementor-shortcode"><?php echo $shortcode; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div>
144 136 <?php
@@ -165,15 +157,5 @@
165 157 * @since 2.9.0
166 158 * @access protected
167 159 */
168 160 protected function content_template() {}
169 -
170 - public function render_markdown(): string {
171 - $settings = $this->get_settings_for_display();
172 - $shortcode = $settings['shortcode'] ?? '';
173 - if ( empty( $shortcode ) ) {
174 - return '';
175 - }
176 - $output = do_shortcode( $shortcode );
177 - return Utils::html_to_plain_text( $output );
178 - }
179 161 }