| @@ -93,12 +93,8 @@ | ||
| 93 | 93 | protected function is_dynamic_content(): bool { |
| 94 | 94 | return false; |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - public function has_widget_inner_wrapper(): bool { | |
| 98 | - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' ); | |
| 99 | - } | |
| 100 | - | |
| 101 | 97 | /** |
| 102 | 98 | * Get style dependencies. |
| 103 | 99 | * |
| 104 | 100 | * Retrieve the list of style dependencies the widget requires. |
| @@ -327,10 +323,10 @@ | ||
| 327 | 323 | ] |
| 328 | 324 | ); |
| 329 | 325 | } |
| 330 | 326 | |
| 331 | - private function filter_styles_by( $styles_array, $key, $value ) { | |
| 332 | - return array_filter( $styles_array, function( $style ) use ( $key, $value ) { | |
| 327 | + private function filter_styles_by( $array, $key, $value ) { | |
| 328 | + return array_filter( $array, function( $style ) use ( $key, $value ) { | |
| 333 | 329 | return $value === $style[ $key ]; |
| 334 | 330 | } ); |
| 335 | 331 | } |
| 336 | 332 | |
| @@ -1136,16 +1132,6 @@ | ||
| 1136 | 1132 | <?php endif; ?> |
| 1137 | 1133 | </span> |
| 1138 | 1134 | </div> |
| 1139 | 1135 | <?php |
| 1140 | - } | |
| 1141 | - | |
| 1142 | - public function render_markdown(): string { | |
| 1143 | - $settings = $this->get_settings_for_display(); | |
| 1144 | - | |
| 1145 | - if ( 'line_text' === ( $settings['look'] ?? '' ) && ! empty( $settings['text'] ) ) { | |
| 1146 | - return '--- ' . Utils::html_to_plain_text( $settings['text'] ) . ' ---'; | |
| 1147 | - } | |
| 1148 | - | |
| 1149 | - return '---'; | |
| 1150 | 1136 | } |
| 1151 | 1137 | } |