PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.8
Elementor Website Builder – more than just a page builder v3.35.8
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 -36 4.2.43.35.8 View file →
@@ -29,9 +29,8 @@
29 29 'a',
30 30 'article',
31 31 'aside',
32 32 'button',
33 - 'form',
34 33 'div',
35 34 'footer',
36 35 'h1',
37 36 'h2',
@@ -637,12 +636,8 @@
637 636 public static function has_pro() {
638 637 return defined( 'ELEMENTOR_PRO_VERSION' );
639 638 }
640 639
641 - public static function is_license_active(): bool {
642 - return class_exists( '\ElementorPro\License\API' ) && \ElementorPro\License\API::is_license_active();
643 - }
644 -
645 640 public static function is_pro_installed_and_not_active(): bool {
646 641 if ( ! function_exists( 'get_plugins' ) ) {
647 642 require_once ABSPATH . 'wp-admin/includes/plugin.php';
648 643 }
@@ -733,19 +728,13 @@
733 728 if ( $id === $element['id'] ) {
734 729 return $element;
735 730 }
736 731
737 - $inner_elements = apply_filters(
738 - 'elementor/utils/find_element_recursive/inner_elements',
739 - $element['elements'] ?? [],
740 - $element
741 - );
732 + if ( ! empty( $element['elements'] ) ) {
733 + $element = self::find_element_recursive( $element['elements'], $id );
742 734
743 - if ( ! empty( $inner_elements ) ) {
744 - $found = self::find_element_recursive( $inner_elements, $id );
745 -
746 - if ( $found ) {
747 - return $found;
735 + if ( $element ) {
736 + return $element;
748 737 }
749 738 }
750 739 }
751 740
@@ -839,14 +828,8 @@
839 828
840 829 echo wp_kses( $text, $allowed_html );
841 830 }
842 831
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 832 public static function is_elementor_path( $path ) {
850 833 $path = wp_normalize_path( $path );
851 834
852 835 /**
@@ -938,10 +921,10 @@
938 921 return $cache;
939 922 }
940 923
941 924 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 );
925 + $sale_start_time = gmmktime( 12, 0, 0, 11, 25, 2025 );
926 + $sale_end_time = gmmktime( 3, 59, 0, 12, 3, 2025 );
944 927
945 928 $now_time = gmdate( 'U' );
946 929
947 930 return $now_time >= $sale_start_time && $now_time <= $sale_end_time;
@@ -987,19 +970,6 @@
987 970 }
988 971
989 972 public static function encode_string( string $decoded_string ): string {
990 973 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 974 }
1005 975 }