PluginProbe
Elementor Website Builder – more than just a page builder / 4.1.4
Elementor Website Builder – more than just a page builder v4.1.4
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 4.1.0-beta2 4.1.0-dev2 All 455 releases
← All changes | modules/global-classes/global-classes-repository.php +6 -2 4.2.0-beta2 → 4.1.4 View file →
@@ -28,8 +28,12 @@
28 28 'event' => [
29 29 'frontend' => self::CONTEXT_FRONTEND,
30 30 'preview' => self::CONTEXT_PREVIEW,
31 31 ],
32 + 'meta_key' => [
33 + 'frontend' => self::META_KEY_FRONTEND,
34 + 'preview' => self::META_KEY_PREVIEW,
35 + ],
32 36 ];
33 37
34 38 private ?Global_Classes $cache = null;
35 39
@@ -99,9 +103,9 @@
99 103 return Global_Classes_Labels::make( $this->get_kit() )->set_preview( $this->is_preview() );
100 104 }
101 105
102 106 public function get( string $class_id ): ?array {
103 - $post = Global_Class_Post::find_by_class_id( $class_id, $this->is_preview(), $this->get_kit() );
107 + $post = Global_Class_Post::find_by_class_id( $class_id, $this->is_preview() );
104 108
105 109 return $post ? $post->to_array() : null;
106 110 }
107 111
@@ -438,9 +442,9 @@
438 442 public function delete_all(): void {
439 443 $order = $this->get_order();
440 444
441 445 $this->each_class_id_batch( $order, function ( string $class_id ) {
442 - $post = Global_Class_Post::find_by_class_id( $class_id, false, $this->get_kit() );
446 + $post = Global_Class_Post::find_by_class_id( $class_id );
443 447
444 448 if ( $post ) {
445 449 $post->delete();
446 450 }