PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.0-dev2
Elementor Website Builder – more than just a page builder v3.35.0-dev2
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 -30 4.1.53.35.0-dev2 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
@@ -932,10 +921,10 @@
932 921 return $cache;
933 922 }
934 923
935 924 public static function is_sale_time(): bool {
936 - $sale_start_time = gmmktime( 10, 0, 0, 6, 15, 2026 );
937 - $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 );
938 927
939 928 $now_time = gmdate( 'U' );
940 929
941 930 return $now_time >= $sale_start_time && $now_time <= $sale_end_time;
@@ -981,19 +970,6 @@
981 970 }
982 971
983 972 public static function encode_string( string $decoded_string ): string {
984 973 return base64_encode( $decoded_string );
985 - }
986 -
987 - public static function html_to_plain_text( string $html ): string {
988 - if ( empty( $html ) ) {
989 - return '';
990 - }
991 -
992 - $text = preg_replace( '#<br\s*/?\s*>#i', ' ', $html );
993 - $text = preg_replace( '#</?[a-z][^>]*>#i', ' ', $text );
994 - $text = html_entity_decode( $text, ENT_QUOTES, 'UTF-8' );
995 - $text = str_replace( "\xE2\x80\x8B", '', $text );
996 -
997 - return trim( preg_replace( '/\s+/', ' ', $text ) );
998 974 }
999 975 }