| @@ -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. |
| @@ -111,11 +107,8 @@ | ||
| 111 | 107 | 'type' => Controls_Manager::TEXTAREA, |
| 112 | 108 | 'dynamic' => [ |
| 113 | 109 | 'active' => true, |
| 114 | 110 | ], |
| 115 | - 'ai' => [ | |
| 116 | - 'active' => false, | |
| 117 | - ], | |
| 118 | 111 | 'placeholder' => '[gallery id="123" size="medium"]', |
| 119 | 112 | 'default' => '', |
| 120 | 113 | ] |
| 121 | 114 | ); |
| @@ -132,12 +125,8 @@ | ||
| 132 | 125 | * @access protected |
| 133 | 126 | */ |
| 134 | 127 | protected function render() { |
| 135 | 128 | $shortcode = $this->get_settings_for_display( 'shortcode' ); |
| 136 | - | |
| 137 | - if ( empty( $shortcode ) ) { | |
| 138 | - return; | |
| 139 | - } | |
| 140 | 129 | |
| 141 | 130 | $shortcode = do_shortcode( shortcode_unautop( $shortcode ) ); |
| 142 | 131 | ?> |
| 143 | 132 | <div class="elementor-shortcode"><?php echo $shortcode; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div> |