PluginProbe
Elementor Website Builder – more than just a page builder / 3.14.0-beta4
Elementor Website Builder – more than just a page builder v3.14.0-beta4
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/site-navigation/data/controller.php +0 -9 4.1.5 → 3.14.0-beta4 View file →
@@ -1,13 +1,10 @@
1 1 <?php
2 2
3 3 namespace Elementor\Modules\SiteNavigation\Data;
4 4
5 -use Elementor\Plugin;
6 5 use Elementor\Data\V2\Base\Controller as Base_Controller;
7 6 use Elementor\Modules\SiteNavigation\Data\Endpoints\Add_New_Post;
8 -use Elementor\Modules\SiteNavigation\Data\Endpoints\Duplicate_Post;
9 -use Elementor\Modules\SiteNavigation\Data\Endpoints\Homepage;
10 7 use Elementor\Modules\SiteNavigation\Data\Endpoints\Recent_Posts;
11 8
12 9 if ( ! defined( 'ABSPATH' ) ) {
13 10 exit; // Exit if accessed directly.
@@ -21,9 +18,8 @@
21 18
22 19 public function get_items_permissions_check( $request ) {
23 20 return current_user_can( 'edit_posts' );
24 21 }
25 -
26 22 public function create_items_permissions_check( $request ): bool {
27 23 // Permissions check is located in the endpoint
28 24 return true;
29 25 }
@@ -38,13 +34,8 @@
38 34
39 35 public function register_endpoints() {
40 36 $this->register_endpoint( new Recent_Posts( $this ) );
41 37 $this->register_endpoint( new Add_New_Post( $this ) );
42 -
43 - if ( Plugin::$instance->experiments->is_feature_active( 'pages_panel' ) ) {
44 - $this->register_endpoint( new Duplicate_Post( $this ) );
45 - $this->register_endpoint( new Homepage( $this ) );
46 - }
47 38 }
48 39
49 40 protected function register_index_endpoint() {
50 41 // Bypass, currently does not required.