| @@ -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 | |
| @@ -640,8 +638,9 @@ | ||
| 640 | 638 | private function get_feature_settings_label_html( array $feature ) { |
| 641 | 639 | ob_start(); |
| 642 | 640 | |
| 643 | 641 | $is_feature_active = $this->is_feature_active( $feature['name'] ); |
| 642 | + $is_editor_one_enabled = $this->is_feature_active( 'e_editor_one' ); | |
| 644 | 643 | |
| 645 | 644 | $indicator_classes = 'e-experiment__title__indicator'; |
| 646 | 645 | |
| 647 | 646 | if ( $is_feature_active ) { |
| @@ -655,9 +654,12 @@ | ||
| 655 | 654 | <div class="<?php echo $indicator_classes; ?>" data-tooltip="<?php echo $indicator_tooltip; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"></div> |
| 656 | 655 | <label class="e-experiment__title__label" for="e-experiment-<?php echo $feature['name']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"><?php echo $feature['title']; ?></label> |
| 657 | 656 | <?php foreach ( $feature['tags'] as $tag ) { ?> |
| 658 | 657 | <?php |
| 659 | - $tag_classes = 'e-experiment__title__tag e-experiment__title__tag__' . $tag['type'] . ' e-editor-one'; | |
| 658 | + $tag_classes = 'e-experiment__title__tag e-experiment__title__tag__' . $tag['type']; | |
| 659 | + if ( $is_editor_one_enabled ) { | |
| 660 | + $tag_classes .= ' e-editor-one'; | |
| 661 | + } | |
| 660 | 662 | ?> |
| 661 | 663 | <span class="<?php echo esc_attr( $tag_classes ); ?>"><?php echo $tag['label']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></span> |
| 662 | 664 | <?php } ?> |
| 663 | 665 | <?php if ( $feature['deprecated'] ) { ?> |