PluginProbe
Elementor Website Builder – more than just a page builder / 3.33.0-beta1
Elementor Website Builder – more than just a page builder v3.33.0-beta1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 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 All 457 releases
← All changes | modules/global-classes/global-classes-parser.php +1 -16 4.0.9 → 3.33.0-beta1 View file →
@@ -3,9 +3,9 @@
3 3 namespace Elementor\Modules\GlobalClasses;
4 4
5 5 use Elementor\Core\Utils\Collection;
6 6 use Elementor\Modules\AtomicWidgets\Module;
7 -use Elementor\Modules\AtomicWidgets\OptIn\Opt_In;
7 +use Elementor\Modules\AtomicWidgets\Opt_In;
8 8 use Elementor\Core\Utils\Api\Parse_Result;
9 9 use Elementor\Modules\AtomicWidgets\Parsers\Style_Parser;
10 10 use Elementor\Modules\AtomicWidgets\Styles\Style_Schema;
11 11
@@ -135,21 +135,6 @@
135 135 ];
136 136 }
137 137 }
138 138 return $duplicates;
139 - }
140 -
141 - public static function sanitize_order( array $items, array $order ): array {
142 - if ( empty( $items ) ) {
143 - return [];
144 - }
145 -
146 - $item_ids = array_keys( $items );
147 - $order = array_filter( $order, 'is_string' );
148 - $order = array_unique( $order );
149 - $order_existing = array_values( array_intersect( $order, $item_ids ) );
150 - $missing = array_diff( $item_ids, $order_existing );
151 - sort( $missing, SORT_STRING );
152 -
153 - return array_merge( $order_existing, $missing );
154 139 }
155 140 }