| @@ -385,9 +385,9 @@ | ||
| 385 | 385 | return $config; |
| 386 | 386 | } |
| 387 | 387 | |
| 388 | 388 | /** |
| 389 | - * @throws \Exception If current user don't have permissions to edit the post. | |
| 389 | + * @throws \Exception Exception. | |
| 390 | 390 | */ |
| 391 | 391 | public function ajax_get_widget_types_controls_config( array $data ) { |
| 392 | 392 | Plugin::$instance->documents->check_permissions( $data['editor_post_id'] ); |
| 393 | 393 | |
| @@ -493,9 +493,9 @@ | ||
| 493 | 493 | * |
| 494 | 494 | * @param array $request Ajax request. |
| 495 | 495 | * |
| 496 | 496 | * @return bool|string Rendered widget form. |
| 497 | - * @throws \Exception If current user don't have permissions to edit the post. | |
| 497 | + * @throws \Exception If there is an error processing the request. | |
| 498 | 498 | */ |
| 499 | 499 | public function ajax_get_wp_widget_form( $request ) { |
| 500 | 500 | Plugin::$instance->documents->check_permissions( $request['editor_post_id'] ); |
| 501 | 501 | |
| @@ -631,14 +631,8 @@ | ||
| 631 | 631 | */ |
| 632 | 632 | public function enqueue_widgets_scripts() { |
| 633 | 633 | foreach ( $this->get_widget_types() as $widget ) { |
| 634 | 634 | $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 | 635 | } |
| 642 | 636 | } |
| 643 | 637 | |
| 644 | 638 | /** |