Skip to content

Commit c3ff3eb

Browse files
fix tests (WP-945)
1 parent b95fd6a commit c3ff3eb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

inc/Smartling/ContentTypes/Elementor/ElementAbstract.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ public function getDynamicTagsManager(): ?Manager
165165
if (class_exists(Manager::class)) {
166166
return new Manager();
167167
}
168+
if (!defined('WP_PLUGIN_DIR')) {
169+
return null;
170+
}
168171
$managerPath = WP_PLUGIN_DIR . '/elementor/core/dynamic-tags/manager.php';
169172
if (file_exists($managerPath)) {
170173
try {

0 commit comments

Comments
 (0)