| @@ -148,9 +148,9 @@ | ||
| 148 | 148 | /** |
| 149 | 149 | * @var \Elementor\Modules\PageTemplates\Module $page_templates_module |
| 150 | 150 | */ |
| 151 | 151 | $page_templates_module = Plugin::$instance->modules_manager->get_modules( 'page-templates' ); |
| 152 | - $is_elementor_template = (bool) $page_templates_module->get_template_path( $element_data['settings']['template'] ); | |
| 152 | + $is_elementor_template = ! ! $page_templates_module->get_template_path( $element_data['settings']['template'] ); | |
| 153 | 153 | |
| 154 | 154 | if ( ! $is_elementor_template ) { |
| 155 | 155 | unset( $element_data['settings']['template'] ); |
| 156 | 156 | } |
| @@ -167,9 +167,9 @@ | ||
| 167 | 167 | * @since 3.1.0 |
| 168 | 168 | * @access protected |
| 169 | 169 | */ |
| 170 | 170 | protected function register_controls() { |
| 171 | - // Check if it's a real model, or abstract (for example - on import ). | |
| 171 | + // Check if it's a real model, or abstract (for example - on import ) | |
| 172 | 172 | if ( $this->post->ID ) { |
| 173 | 173 | $document = Plugin::$instance->documents->get_doc_or_auto_save( $this->post->ID ); |
| 174 | 174 | |
| 175 | 175 | if ( $document ) { |