PluginProbe
Elementor Website Builder – more than just a page builder / 3.32.2
Elementor Website Builder – more than just a page builder v3.32.2
4.3.0-beta3 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 All 452 releases
← All changes | core/experiments/manager.php +10 -21 4.3.0-beta23.32.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,13 +340,15 @@
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 */
347 - esc_html__( 'Create advanced layouts and responsive designs with %1$sFlexbox%2$s and %3$sGrid%4$s container elements.', 'elementor' ),
344 + /* 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 */
345 + 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 346 '<a target="_blank" href="https://go.elementor.com/wp-dash-flex-container/">',
349 347 '</a>',
350 348 '<a target="_blank" href="https://go.elementor.com/wp-dash-grid-container/">',
349 + '</a>',
350 + '<a target="_blank" href="https://go.elementor.com/wp-dash-flex-container-playground/">',
351 351 '</a>'
352 352 ),
353 353 'release_status' => self::RELEASE_STATUS_STABLE,
354 354 'default' => self::STATE_INACTIVE,
@@ -376,18 +376,8 @@
376 376 'default_active' => true,
377 377 'minimum_installation_version' => '3.30.0',
378 378 ],
379 379 ] );
380 -
381 - $this->add_feature( [
382 - 'name' => 'e_optimized_css_files',
383 - 'title' => esc_html__( 'Optimized CSS Files', 'elementor' ),
384 - 'tag' => esc_html__( 'Performance', 'elementor' ),
385 - 'description' => esc_html__( 'Keeps external CSS files available and consistent for sites behind page caching or a CDN.', 'elementor' ),
386 - 'release_status' => self::RELEASE_STATUS_ALPHA,
387 - 'default' => self::STATE_INACTIVE,
388 - 'generator_tag' => true,
389 - ] );
390 380 }
391 381
392 382 /**
393 383 * Init States
@@ -662,12 +652,9 @@
662 652 <div class="e-experiment__title">
663 653 <div class="<?php echo $indicator_classes; ?>" data-tooltip="<?php echo $indicator_tooltip; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"></div>
664 654 <label class="e-experiment__title__label" for="e-experiment-<?php echo $feature['name']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"><?php echo $feature['title']; ?></label>
665 655 <?php foreach ( $feature['tags'] as $tag ) { ?>
666 - <?php
667 - $tag_classes = 'e-experiment__title__tag e-experiment__title__tag__' . $tag['type'] . ' e-editor-one';
668 - ?>
669 - <span class="<?php echo esc_attr( $tag_classes ); ?>"><?php echo $tag['label']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></span>
656 + <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>
670 657 <?php } ?>
671 658 <?php if ( $feature['deprecated'] ) { ?>
672 659 <span class="e-experiment__title__tag e-experiment__title__tag__deprecated"><?php echo esc_html__( 'Deprecated', 'elementor' ); ?></span>
673 660 <?php } ?>
@@ -738,8 +725,10 @@
738 725 *
739 726 * @param array $old_feature_data
740 727 * @param string $new_state
741 728 * @param string $old_state
729 + *
730 + * @throws Dependency_Exception If the feature dependency is not available or not active.
742 731 */
743 732 private function on_feature_state_change( array $old_feature_data, $new_state, $old_state ) {
744 733 $new_feature_data = $this->get_features( $old_feature_data['name'] );
745 734 $this->validate_dependency( $new_feature_data, $new_state );
@@ -756,9 +745,9 @@
756 745 do_action( 'elementor/experiments/feature-state-change/' . $old_feature_data['name'], $old_state, $new_state );
757 746 }
758 747
759 748 /**
760 - * @throws Exceptions\Dependency_Exception If the feature dependency is not available or not active.
749 + * @throws Dependency_Exception If the feature dependency is not available or not active.
761 750 */
762 751 private function validate_dependency( array $feature, $new_state ) {
763 752 $rollback = function ( $feature_option_key, $state ) {
764 753 remove_all_actions( 'add_option_' . $feature_option_key );
@@ -946,9 +935,9 @@
946 935 /**
947 936 * @param array $experimental_data
948 937 * @return array
949 938 *
950 - * @throws Exceptions\Dependency_Exception If the feature dependency is not initialized or depends on a hidden experiment.
939 + * @throws Dependency_Exception If the feature dependency is not initialized or depends on a hidden experiment.
951 940 */
952 941 private function initialize_feature_dependencies( array $experimental_data ): array {
953 942 foreach ( $experimental_data['dependencies'] as $key => $dependency ) {
954 943 $feature = $this->get_features( $dependency );