Plugin Directory

Changeset 1340897


Ignore:
Timestamp:
02/01/2016 08:31:00 PM (10 years ago)
Author:
Embedly
Message:

adds plugins_url best practice to fix protocol resolution errors

Location:
embedly/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • embedly/trunk/embedly.php

    r1331459 r1340897  
    55Description: The Embedly Plugin extends Wordpress's automatic embed feature, allowing bloggers to Embed from 300+ services and counting.
    66Author: Embed.ly Inc
    7 Version: 4.0.6
     7Version: 4.0.7
    88Author URI: http://embed.ly
    99License: GPL2
     
    2828 * Define Constants
    2929 */
    30 if (!defined('WP_CONTENT_URL')) {
    31     define('WP_CONTENT_URL', WP_SITEURL . '/wp-content');
    32 }
    33 if (!defined('WP_CONTENT_DIR')) {
    34     define('WP_CONTENT_DIR', ABSPATH . 'wp-content');
    35 }
    36 if (!defined('WP_PLUGIN_URL')) {
    37     define('WP_PLUGIN_URL', WP_CONTENT_URL . '/plugins');
    38 }
    39 if (!defined('WP_PLUGIN_DIR')) {
    40     define('WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins');
    41 }
    42 if (!defined('EMBEDLY_DIR')) {
    43     define('EMBEDLY_DIR', WP_PLUGIN_DIR . '/embedly');
    44 }
    4530if (!defined('EMBEDLY_URL')) {
    46     define('EMBEDLY_URL', WP_PLUGIN_URL . '/embedly');
     31    define('EMBEDLY_URL', plugins_url('/embedly'));
    4732}
    4833if (!defined('EMBEDLY_BASE_URI')) {
  • embedly/trunk/readme.txt

    r1331459 r1340897  
    66Requires at least: 3.8
    77Tested up to: 4.4
    8 Stable tag: 4.0.6
     8Stable tag: 4.0.7
    99License: GPLv2
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.