| @@ -4,9 +4,8 @@ | ||
| 4 | 4 | use Elementor\Core\Base\Document; |
| 5 | 5 | use Elementor\Core\Base\Module as BaseModule; |
| 6 | 6 | use Elementor\Core\DynamicTags\Manager; |
| 7 | 7 | use Elementor\Modules\System_Info\Module as System_Info; |
| 8 | -use Elementor\DB; | |
| 9 | 8 | use Elementor\Plugin; |
| 10 | 9 | |
| 11 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 12 | 11 | exit; // Exit if accessed directly. |
| @@ -176,9 +175,9 @@ | ||
| 176 | 175 | * |
| 177 | 176 | * @param Document $document |
| 178 | 177 | */ |
| 179 | 178 | public function after_document_save( $document ) { |
| 180 | - if ( DB::STATUS_PUBLISH === $document->get_post()->post_status || DB::STATUS_PRIVATE === $document->get_post()->post_status ) { | |
| 179 | + if ( Document::STATUS_PUBLISH === $document->get_post()->post_status || Document::STATUS_PRIVATE === $document->get_post()->post_status ) { | |
| 181 | 180 | $this->save_document_usage( $document ); |
| 182 | 181 | } |
| 183 | 182 | |
| 184 | 183 | $this->is_document_saving = false; |