Plugin Directory

Changeset 847211


Ignore:
Timestamp:
01/28/2014 07:39:06 PM (12 years ago)
Author:
TouchCast
Message:

Fix plugin url

File:
1 edited

Legend:

Unmodified
Added
Removed
  • touchcast-embed/trunk/touchcast.php

    r847138 r847211  
    88*/
    99// path to plugin
    10 function touchcast_get_plugin_url($file, $pluginame = "touchcast")
     10function touchcast_get_plugin_url($file, $pluginname = "touchcast-embed")
    1111{
    1212    // check if plugins url function exists
     
    1414        return plugins_url($file, __FILE__);
    1515    } else if (defined('WP_PLUGIN_URL')) {
    16         return WP_PLUGIN_URL . "/" . $pluginame . $file;
     16        return WP_PLUGIN_URL . "/" . $pluginname . $file;
    1717    } else {
    1818        // if not assumme it is default location.
    19         return "../../../wp-content/plugins/" . $pluginame . $file;
     19        return "../../../wp-content/plugins/" . $pluginname . $file;
    2020    }
    2121}
Note: See TracChangeset for help on using the changeset viewer.