| @@ -637,12 +637,8 @@ | ||
| 637 | 637 | public static function has_pro() { |
| 638 | 638 | return defined( 'ELEMENTOR_PRO_VERSION' ); |
| 639 | 639 | } |
| 640 | 640 | |
| 641 | - public static function is_license_active(): bool { | |
| 642 | - return class_exists( '\ElementorPro\License\API' ) && \ElementorPro\License\API::is_license_active(); | |
| 643 | - } | |
| 644 | - | |
| 645 | 641 | public static function is_pro_installed_and_not_active(): bool { |
| 646 | 642 | if ( ! function_exists( 'get_plugins' ) ) { |
| 647 | 643 | require_once ABSPATH . 'wp-admin/includes/plugin.php'; |
| 648 | 644 | } |
| @@ -839,14 +835,8 @@ | ||
| 839 | 835 | |
| 840 | 836 | echo wp_kses( $text, $allowed_html ); |
| 841 | 837 | } |
| 842 | 838 | |
| 843 | - public static function kses_post_deep( $data ) { | |
| 844 | - return map_deep( $data, function ( $value ) { | |
| 845 | - return is_string( $value ) ? wp_kses_post( $value ) : $value; | |
| 846 | - } ); | |
| 847 | - } | |
| 848 | - | |
| 849 | 839 | public static function is_elementor_path( $path ) { |
| 850 | 840 | $path = wp_normalize_path( $path ); |
| 851 | 841 | |
| 852 | 842 | /** |
| @@ -938,10 +928,10 @@ | ||
| 938 | 928 | return $cache; |
| 939 | 929 | } |
| 940 | 930 | |
| 941 | 931 | public static function is_sale_time(): bool { |
| 942 | - $sale_start_time = gmmktime( 10, 0, 0, 6, 15, 2026 ); | |
| 943 | - $sale_end_time = gmmktime( 3, 59, 0, 6, 17, 2026 ); | |
| 932 | + $sale_start_time = gmmktime( 12, 0, 0, 11, 25, 2025 ); | |
| 933 | + $sale_end_time = gmmktime( 3, 59, 0, 12, 3, 2025 ); | |
| 944 | 934 | |
| 945 | 935 | $now_time = gmdate( 'U' ); |
| 946 | 936 | |
| 947 | 937 | return $now_time >= $sale_start_time && $now_time <= $sale_end_time; |