| @@ -93,26 +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 | - /** | |
| 102 | - * Get style dependencies. | |
| 103 | - * | |
| 104 | - * Retrieve the list of style dependencies the widget requires. | |
| 105 | - * | |
| 106 | - * @since 3.24.0 | |
| 107 | - * @access public | |
| 108 | - * | |
| 109 | - * @return array Widget style dependencies. | |
| 110 | - */ | |
| 111 | - public function get_style_depends(): array { | |
| 112 | - return [ 'widget-divider' ]; | |
| 113 | - } | |
| 114 | - | |
| 115 | 97 | private static function get_additional_styles() { |
| 116 | 98 | static $additional_styles = null; |
| 117 | 99 | |
| 118 | 100 | if ( null !== $additional_styles ) { |
| @@ -327,10 +309,10 @@ | ||
| 327 | 309 | ] |
| 328 | 310 | ); |
| 329 | 311 | } |
| 330 | 312 | |
| 331 | - private function filter_styles_by( $styles_array, $key, $value ) { | |
| 332 | - return array_filter( $styles_array, function( $style ) use ( $key, $value ) { | |
| 313 | + private function filter_styles_by( $array, $key, $value ) { | |
| 314 | + return array_filter( $array, function( $style ) use ( $key, $value ) { | |
| 333 | 315 | return $value === $style[ $key ]; |
| 334 | 316 | } ); |
| 335 | 317 | } |
| 336 | 318 | |