PluginProbe
Elementor Website Builder – more than just a page builder / 3.33.0-dev1
Elementor Website Builder – more than just a page builder v3.33.0-dev1
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 -45 4.2.0-dev23.33.0-dev1 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,27 +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 - public static function is_pro_installed_and_not_active(): bool {
646 - if ( ! function_exists( 'get_plugins' ) ) {
647 - require_once ABSPATH . 'wp-admin/includes/plugin.php';
648 - }
649 -
650 - $file_path = self::get_elementor_pro_file_path();
651 - $installed_plugins = get_plugins();
652 -
653 - return isset( $installed_plugins[ $file_path ] );
654 - }
655 -
656 - private static function get_elementor_pro_file_path(): string {
657 - return 'elementor-pro/elementor-pro.php';
658 - }
659 -
660 640 /**
661 641 * Convert HTMLEntities to UTF-8 characters
662 642 *
663 643 * @param string $html_string
@@ -733,19 +713,13 @@
733 713 if ( $id === $element['id'] ) {
734 714 return $element;
735 715 }
736 716
737 - $inner_elements = apply_filters(
738 - 'elementor/utils/find_element_recursive/inner_elements',
739 - $element['elements'] ?? [],
740 - $element
741 - );
717 + if ( ! empty( $element['elements'] ) ) {
718 + $element = self::find_element_recursive( $element['elements'], $id );
742 719
743 - if ( ! empty( $inner_elements ) ) {
744 - $found = self::find_element_recursive( $inner_elements, $id );
745 -
746 - if ( $found ) {
747 - return $found;
720 + if ( $element ) {
721 + return $element;
748 722 }
749 723 }
750 724 }
751 725
@@ -932,10 +906,10 @@
932 906 return $cache;
933 907 }
934 908
935 909 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 );
910 + $sale_start_time = gmmktime( 12, 0, 0, 11, 25, 2025 );
911 + $sale_end_time = gmmktime( 3, 59, 0, 12, 3, 2025 );
938 912
939 913 $now_time = gmdate( 'U' );
940 914
941 915 return $now_time >= $sale_start_time && $now_time <= $sale_end_time;
@@ -981,19 +955,6 @@
981 955 }
982 956
983 957 public static function encode_string( string $decoded_string ): string {
984 958 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 959 }
999 960 }