PluginProbe
Elementor Website Builder – more than just a page builder / 3.28.0-dev2
Elementor Website Builder – more than just a page builder v3.28.0-dev2
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 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | includes/managers/widgets.php +3 -10 4.0.73.28.0-dev2 View file →
@@ -2,11 +2,11 @@
2 2 namespace Elementor;
3 3
4 4 use Elementor\Core\Common\Modules\Ajax\Module as Ajax;
5 5 use Elementor\Core\Utils\Collection;
6 +use Elementor\Core\Utils\Exceptions;
6 7 use Elementor\Core\Utils\Force_Locale;
7 8 use Elementor\Modules\AtomicWidgets\Elements\Atomic_Button\Atomic_Button;
8 -use Elementor\Modules\AtomicWidgets\Elements\Atomic_Divider\Atomic_Divider;
9 9 use Elementor\Modules\AtomicWidgets\Elements\Atomic_Heading\Atomic_Heading;
10 10 use Elementor\Modules\AtomicWidgets\Elements\Atomic_Image\Atomic_Image;
11 11 use Elementor\Modules\AtomicWidgets\Elements\Atomic_Paragraph\Atomic_Paragraph;
12 12 use Elementor\Modules\AtomicWidgets\Elements\Atomic_Svg\Atomic_Svg;
@@ -62,9 +62,8 @@
62 62 Atomic_Image::class,
63 63 Atomic_Paragraph::class,
64 64 Atomic_Button::class,
65 65 Atomic_Svg::class,
66 - Atomic_Divider::class,
67 66 ],
68 67 ];
69 68
70 69 /**
@@ -385,9 +384,9 @@
385 384 return $config;
386 385 }
387 386
388 387 /**
389 - * @throws \Exception If current user don't have permissions to edit the post.
388 + * @throws \Exception Exception.
390 389 */
391 390 public function ajax_get_widget_types_controls_config( array $data ) {
392 391 Plugin::$instance->documents->check_permissions( $data['editor_post_id'] );
393 392
@@ -493,9 +492,9 @@
493 492 *
494 493 * @param array $request Ajax request.
495 494 *
496 495 * @return bool|string Rendered widget form.
497 - * @throws \Exception If current user don't have permissions to edit the post.
496 + * @throws \Exception If there is an error processing the request.
498 497 */
499 498 public function ajax_get_wp_widget_form( $request ) {
500 499 Plugin::$instance->documents->check_permissions( $request['editor_post_id'] );
501 500
@@ -631,14 +630,8 @@
631 630 */
632 631 public function enqueue_widgets_scripts() {
633 632 foreach ( $this->get_widget_types() as $widget ) {
634 633 $widget->enqueue_scripts();
635 - }
636 - }
637 -
638 - public function register_frontend_handlers() {
639 - foreach ( $this->get_widget_types() as $widget ) {
640 - $widget->register_frontend_handlers();
641 634 }
642 635 }
643 636
644 637 /**