| @@ -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 | } |