PluginProbe
Elementor Website Builder – more than just a page builder / 4.1.0-dev3
Elementor Website Builder – more than just a page builder v4.1.0-dev3
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | core/base/document.php +2 -19 4.2.04.1.0-dev3 View file →
@@ -46,10 +46,8 @@
46 46 const BUILT_WITH_ELEMENTOR_META_KEY = '_elementor_edit_mode';
47 47
48 48 const CACHE_META_KEY = '_elementor_element_cache';
49 49
50 - const UNEDITABLE_WITH_ELEMENTOR_TYPES = [ 'kit' ];
51 -
52 50 /**
53 51 * Document publish status.
54 52 */
55 53 const STATUS_PUBLISH = 'publish';
@@ -232,16 +230,9 @@
232 230 *
233 231 * @return array
234 232 */
235 233 private static function get_panel_category_item( $promotion, $index, array $categories, bool $has_pro ): array {
236 - $keep_promotion = $has_pro && apply_filters(
237 - 'elementor/document/panel_category_keep_promotion',
238 - false,
239 - $index,
240 - $promotion
241 - );
242 -
243 - if ( ! $has_pro || $keep_promotion ) {
234 + if ( ! $has_pro ) {
244 235 $categories[ $index ]['promotion'] = Filtered_Promotions_Manager::get_filtered_promotion_data(
245 236 $promotion,
246 237 'elementor/panel/' . $index . '/custom_promotion',
247 238 'url'
@@ -656,9 +647,9 @@
656 647 *
657 648 * @return array An updated array of row action links.
658 649 */
659 650 public function filter_admin_row_actions( $actions ) {
660 - if ( $this->is_editable_with_elementor() ) {
651 + if ( $this->is_built_with_elementor() && $this->is_editable_by_current_user() ) {
661 652 $actions['edit_with_elementor'] = sprintf(
662 653 '<a href="%1$s">%2$s</a>',
663 654 $this->get_edit_url(),
664 655 __( 'Edit with Elementor', 'elementor' )
@@ -665,16 +656,8 @@
665 656 );
666 657 }
667 658
668 659 return $actions;
669 - }
670 -
671 - public function is_editable_with_elementor() {
672 - if ( in_array( $this->get_type(), self::UNEDITABLE_WITH_ELEMENTOR_TYPES ) ) {
673 - return false;
674 - }
675 -
676 - return $this->is_editable_by_current_user() && $this->is_built_with_elementor();
677 660 }
678 661
679 662 /**
680 663 * @since 2.0.0