PluginProbe
Elementor Website Builder – more than just a page builder / 3.6.7
Elementor Website Builder – more than just a page builder v3.6.7
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 4.0.7 All 451 releases
← All changes | data/v2/base/endpoint.php +8 -8 4.1.0-dev13.6.7 View file →
@@ -3,9 +3,9 @@
3 3
4 4 use Elementor\Data\V2\Manager;
5 5
6 6 if ( ! defined( 'ABSPATH' ) ) {
7 - exit; // Exit if accessed directly.
7 + exit; // Exit if accessed directly
8 8 }
9 9
10 10 abstract class Endpoint extends Base_Route {
11 11 /**
@@ -136,18 +136,18 @@
136 136
137 137 /**
138 138 * Endpoint constructor.
139 139 *
140 - * @param \Elementor\Data\V2\Base\Controller|\Elementor\Data\V2\Base\Endpoint $parent_endpoint
141 - * @param string $route
140 + * @param \Elementor\Data\V2\Base\Controller|\Elementor\Data\V2\Base\Endpoint $parent
141 + * @param string $route
142 142 */
143 - public function __construct( $parent_endpoint, $route = '/' ) {
144 - $controller = $parent_endpoint;
145 - $this->parent = $parent_endpoint;
143 + public function __construct( $parent, $route = '/' ) {
144 + $controller = $parent;
145 + $this->parent = $parent;
146 146
147 147 // In case, its behave like sub-endpoint.
148 - if ( ! ( $parent_endpoint instanceof Controller ) ) {
149 - $controller = $parent_endpoint->get_controller();
148 + if ( ! ( $parent instanceof Controller ) ) {
149 + $controller = $parent->get_controller();
150 150 }
151 151
152 152 parent::__construct( $controller, $route );
153 153 }