PluginProbe
Elementor Website Builder – more than just a page builder / 4.0.5
Elementor Website Builder – more than just a page builder v4.0.5
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 | includes/utils.php +6 -35 4.2.24.0.5 View file →
@@ -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 }
@@ -733,19 +729,13 @@
733 729 if ( $id === $element['id'] ) {
734 730 return $element;
735 731 }
736 732
737 - $inner_elements = apply_filters(
738 - 'elementor/utils/find_element_recursive/inner_elements',
739 - $element['elements'] ?? [],
740 - $element
741 - );
733 + if ( ! empty( $element['elements'] ) ) {
734 + $element = self::find_element_recursive( $element['elements'], $id );
742 735
743 - if ( ! empty( $inner_elements ) ) {
744 - $found = self::find_element_recursive( $inner_elements, $id );
745 -
746 - if ( $found ) {
747 - return $found;
736 + if ( $element ) {
737 + return $element;
748 738 }
749 739 }
750 740 }
751 741
@@ -839,14 +829,8 @@
839 829
840 830 echo wp_kses( $text, $allowed_html );
841 831 }
842 832
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 833 public static function is_elementor_path( $path ) {
850 834 $path = wp_normalize_path( $path );
851 835
852 836 /**
@@ -938,10 +922,10 @@
938 922 return $cache;
939 923 }
940 924
941 925 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 );
926 + $sale_start_time = gmmktime( 12, 0, 0, 11, 25, 2025 );
927 + $sale_end_time = gmmktime( 3, 59, 0, 12, 3, 2025 );
944 928
945 929 $now_time = gmdate( 'U' );
946 930
947 931 return $now_time >= $sale_start_time && $now_time <= $sale_end_time;
@@ -987,19 +971,6 @@
987 971 }
988 972
989 973 public static function encode_string( string $decoded_string ): string {
990 974 return base64_encode( $decoded_string );
991 - }
992 -
993 - public static function html_to_plain_text( string $html ): string {
994 - if ( empty( $html ) ) {
995 - return '';
996 - }
997 -
998 - $text = preg_replace( '#<br\s*/?\s*>#i', ' ', $html );
999 - $text = preg_replace( '#</?[a-z][^>]*>#i', ' ', $text );
1000 - $text = html_entity_decode( $text, ENT_QUOTES, 'UTF-8' );
1001 - $text = str_replace( "\xE2\x80\x8B", '', $text );
1002 -
1003 - return trim( preg_replace( '/\s+/', ' ', $text ) );
1004 975 }
1005 976 }