PluginProbe
Elementor Website Builder – more than just a page builder / 3.31.2
Elementor Website Builder – more than just a page builder v3.31.2
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/experiments/manager.php +6 -19 4.1.43.31.2 View file →
@@ -120,11 +120,9 @@
120 120 private function install_compare( $version ) {
121 121 $installs_history = Upgrade_Manager::get_installs_history();
122 122
123 123 if ( empty( $installs_history ) ) {
124 - // Fresh installation: upgrade manager hasn't written history yet on this first request.
125 - // Use the current plugin version as the effective first-install version.
126 - return version_compare( ELEMENTOR_VERSION, $version, '>=' );
124 + return false;
127 125 }
128 126
129 127 $cleaned_version = preg_replace( '/-(beta|cloud|dev)\d*$/', '', key( $installs_history ) );
130 128
@@ -342,9 +340,8 @@
342 340 $this->add_feature( [
343 341 'name' => 'container',
344 342 'title' => esc_html__( 'Container', 'elementor' ),
345 343 'description' => sprintf(
346 - /* translators: 1: Link opening tag, 2: Link closing tag, 3: Link opening tag, 4: Link closing tag, 5: Link opening tag, 6: Link closing tag */
347 344 esc_html__( 'Create advanced layouts and responsive designs with %1$sFlexbox%2$s and %3$sGrid%4$s container elements. Give it a try using the %5$sContainer playground%6$s.', 'elementor' ),
348 345 '<a target="_blank" href="https://go.elementor.com/wp-dash-flex-container/">',
349 346 '</a>',
350 347 '<a target="_blank" href="https://go.elementor.com/wp-dash-grid-container/">',
@@ -378,17 +375,8 @@
378 375 'default_active' => true,
379 376 'minimum_installation_version' => '3.30.0',
380 377 ],
381 378 ] );
382 -
383 - $this->add_feature( [
384 - 'name' => 'e_panel_promotions',
385 - 'title' => esc_html__( 'Panel Promotions', 'elementor' ),
386 - 'description' => esc_html__( 'Enable experimental rendering for targeted promotions within the elements panels.', 'elementor' ),
387 - 'release_status' => self::RELEASE_STATUS_DEV,
388 - 'default' => self::STATE_ACTIVE,
389 - 'type' => self::TYPE_HIDDEN,
390 - ] );
391 379 }
392 380
393 381 /**
394 382 * Init States
@@ -663,12 +651,9 @@
663 651 <div class="e-experiment__title">
664 652 <div class="<?php echo $indicator_classes; ?>" data-tooltip="<?php echo $indicator_tooltip; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"></div>
665 653 <label class="e-experiment__title__label" for="e-experiment-<?php echo $feature['name']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"><?php echo $feature['title']; ?></label>
666 654 <?php foreach ( $feature['tags'] as $tag ) { ?>
667 - <?php
668 - $tag_classes = 'e-experiment__title__tag e-experiment__title__tag__' . $tag['type'] . ' e-editor-one';
669 - ?>
670 - <span class="<?php echo esc_attr( $tag_classes ); ?>"><?php echo $tag['label']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></span>
655 + <span class="e-experiment__title__tag e-experiment__title__tag__<?php echo $tag['type']; ?>"><?php echo $tag['label']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></span>
671 656 <?php } ?>
672 657 <?php if ( $feature['deprecated'] ) { ?>
673 658 <span class="e-experiment__title__tag e-experiment__title__tag__deprecated"><?php echo esc_html__( 'Deprecated', 'elementor' ); ?></span>
674 659 <?php } ?>
@@ -739,8 +724,10 @@
739 724 *
740 725 * @param array $old_feature_data
741 726 * @param string $new_state
742 727 * @param string $old_state
728 + *
729 + * @throws Dependency_Exception If the feature dependency is not available or not active.
743 730 */
744 731 private function on_feature_state_change( array $old_feature_data, $new_state, $old_state ) {
745 732 $new_feature_data = $this->get_features( $old_feature_data['name'] );
746 733 $this->validate_dependency( $new_feature_data, $new_state );
@@ -757,9 +744,9 @@
757 744 do_action( 'elementor/experiments/feature-state-change/' . $old_feature_data['name'], $old_state, $new_state );
758 745 }
759 746
760 747 /**
761 - * @throws Exceptions\Dependency_Exception If the feature dependency is not available or not active.
748 + * @throws Dependency_Exception If the feature dependency is not available or not active.
762 749 */
763 750 private function validate_dependency( array $feature, $new_state ) {
764 751 $rollback = function ( $feature_option_key, $state ) {
765 752 remove_all_actions( 'add_option_' . $feature_option_key );
@@ -947,9 +934,9 @@
947 934 /**
948 935 * @param array $experimental_data
949 936 * @return array
950 937 *
951 - * @throws Exceptions\Dependency_Exception If the feature dependency is not initialized or depends on a hidden experiment.
938 + * @throws Dependency_Exception If the feature dependency is not initialized or depends on a hidden experiment.
952 939 */
953 940 private function initialize_feature_dependencies( array $experimental_data ): array {
954 941 foreach ( $experimental_data['dependencies'] as $key => $dependency ) {
955 942 $feature = $this->get_features( $dependency );