| @@ -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. |
| @@ -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. |