PluginProbe
Elementor Website Builder – more than just a page builder / 3.20.2
Elementor Website Builder – more than just a page builder v3.20.2
4.3.1 4.3.0 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 All 454 releases
← All changes | core/editor/notice-bar.php +7 -3 4.3.0-beta3 → 3.20.2 View file →
@@ -2,14 +2,14 @@
2 2 namespace Elementor\Core\Editor;
3 3
4 4 use Elementor\Core\Base\Base_Object;
5 5 use Elementor\Core\Common\Modules\Ajax\Module as Ajax;
6 -use Elementor\Core\Utils\Promotions\Filtered_Promotions_Manager;
6 +use Elementor\Core\Utils\Promotions\Validate_Promotion;
7 7 use Elementor\Plugin;
8 8 use Elementor\Utils;
9 9
10 10 if ( ! defined( 'ABSPATH' ) ) {
11 - exit; // Exit if accessed directly.
11 + exit; // Exit if accessed directly
12 12 }
13 13
14 14 class Notice_Bar extends Base_Object {
15 15
@@ -25,9 +25,13 @@
25 25 'upgrade_text' => $this->get_upgrade_text(),
26 26 'upgrade_url' => $upgrade_url,
27 27 ];
28 28
29 - $config = Filtered_Promotions_Manager::get_filtered_promotion_data( $config, 'elementor/notice-bar/custom_promotion', 'upgrade_url' );
29 + $config = apply_filters( 'elementor/notice-bar/custom_promotion', $config );
30 +
31 + if ( isset( $config['upgrade_url'] ) && ! Validate_Promotion::domain_is_on_elementor_dot_com( $config['upgrade_url'] ) ) {
32 + $config['upgrade_url'] = esc_url( $upgrade_url );
33 + }
30 34
31 35 return [
32 36 'muted_period' => 14,
33 37 'option_key' => '_elementor_editor_upgrade_notice_dismissed',