PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.0-dev4
Elementor Website Builder – more than just a page builder v3.35.0-dev4
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 -23 4.2.0-dev23.35.0-dev4 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' )
@@ -667,16 +658,8 @@
667 658
668 659 return $actions;
669 660 }
670 661
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 - }
678 -
679 662 /**
680 663 * @since 2.0.0
681 664 * @access public
682 665 */
@@ -2124,10 +2107,6 @@
2124 2107 $this->elements_iteration_actions[] = new Assets_Iteration_Action( $this );
2125 2108 }
2126 2109
2127 2110 return $this->elements_iteration_actions;
2128 - }
2129 -
2130 - public function get_elementor_version() {
2131 - return $this->get_main_meta( '_elementor_version' );
2132 2111 }
2133 2112 }