We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daea774 commit 4c7da1fCopy full SHA for 4c7da1f
post-content-to-markdown.php
@@ -15,12 +15,14 @@
15
}
16
17
// Load the appropriate autoloader
18
-if (file_exists(__DIR__.'/vendor/autoload.php')) {
19
- // Composer installation
20
- require_once __DIR__.'/vendor/autoload.php';
21
-} else {
22
- // Standalone plugin with prefixed dependencies
23
- require_once __DIR__.'/vendor_prefixed/vendor/autoload.php';
+if (!class_exists('\League\HTMLToMarkdown\HtmlConverter')) {
+ if (file_exists(__DIR__.'/vendor/autoload.php')) {
+ // Composer installation
+ require_once __DIR__.'/vendor/autoload.php';
+ } elseif (file_exists(__DIR__.'/vendor_prefixed/vendor/autoload.php')) {
+ // Standalone plugin with prefixed dependencies
24
+ require_once __DIR__.'/vendor_prefixed/vendor/autoload.php';
25
+ }
26
27
28
/**
0 commit comments