From 0b35bf4eefad6a3c4e1c3fdbc0f7c7eb3ec0ad1c Mon Sep 17 00:00:00 2001 From: Tyrel Kelsey Date: Wed, 20 Apr 2016 15:57:49 -0600 Subject: [PATCH] Use __FILE__ instead of the expected plugin path to better handle changes in plugin directory name. --- embedly.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embedly.php b/embedly.php index 584f6a4..648ceff 100644 --- a/embedly.php +++ b/embedly.php @@ -28,7 +28,7 @@ * Define Constants */ if (!defined('EMBEDLY_URL')) { - define('EMBEDLY_URL', plugins_url('/embedly')); + define( 'EMBEDLY_URL', plugins_url( '', __FILE__ ) ); } if (!defined('EMBEDLY_BASE_URI')) { define('EMBEDLY_BASE_URI', 'https://api.embedly.com/1/card?');