| @@ -3,9 +3,8 @@ | ||
| 3 | 3 | |
| 4 | 4 | use Elementor\Controls_Stack; |
| 5 | 5 | use Elementor\Core\DynamicTags\Dynamic_CSS; |
| 6 | 6 | use Elementor\Core\Kits\Manager; |
| 7 | -use Elementor\Core\Frontend\Widget_Content_Render_Mode; | |
| 8 | 7 | use Elementor\Element_Base; |
| 9 | 8 | use Elementor\Plugin; |
| 10 | 9 | |
| 11 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -126,14 +125,9 @@ | ||
| 126 | 125 | * |
| 127 | 126 | * @param array $meta New meta data. |
| 128 | 127 | */ |
| 129 | 128 | protected function update_meta( $meta ) { |
| 130 | - $is_updated = update_post_meta( $this->post_id, static::META_KEY, $meta ); | |
| 131 | - | |
| 132 | - // When a concurrent request already stored the identical value, WP reports no change and skips its meta cache invalidation. | |
| 133 | - if ( ! $is_updated ) { | |
| 134 | - wp_cache_delete( $this->post_id, 'post_meta' ); | |
| 135 | - } | |
| 129 | + update_post_meta( $this->post_id, static::META_KEY, $meta ); | |
| 136 | 130 | } |
| 137 | 131 | |
| 138 | 132 | /** |
| 139 | 133 | * Delete meta. |
| @@ -223,9 +217,9 @@ | ||
| 223 | 217 | * @param array $placeholders Placeholders. |
| 224 | 218 | * @param array $replacements Replacements. |
| 225 | 219 | * @param array $all_controls All controls. |
| 226 | 220 | */ |
| 227 | - public function add_controls_stack_style_rules( Controls_Stack $controls_stack, array $controls, array $values, array $placeholders, array $replacements, ?array $all_controls = null ) { | |
| 221 | + public function add_controls_stack_style_rules( Controls_Stack $controls_stack, array $controls, array $values, array $placeholders, array $replacements, array $all_controls = null ) { | |
| 228 | 222 | parent::add_controls_stack_style_rules( $controls_stack, $controls, $values, $placeholders, $replacements, $all_controls ); |
| 229 | 223 | |
| 230 | 224 | if ( $controls_stack instanceof Element_Base ) { |
| 231 | 225 | foreach ( $controls_stack->get_children() as $child_element ) { |
| @@ -286,12 +280,8 @@ | ||
| 286 | 280 | * |
| 287 | 281 | * @param Element_Base $element The element. |
| 288 | 282 | */ |
| 289 | 283 | protected function render_styles( Element_Base $element ) { |
| 290 | - if ( Widget_Content_Render_Mode::is( Widget_Content_Render_Mode::MARKDOWN ) ) { | |
| 291 | - return; | |
| 292 | - } | |
| 293 | - | |
| 294 | 284 | /** |
| 295 | 285 | * Before element parse CSS. |
| 296 | 286 | * |
| 297 | 287 | * Fires before the CSS of the element is parsed. |