WordPress.org

Plugin Directory

Changeset 609644


Ignore:
Timestamp:
10/08/12 15:48:13 (19 months ago)
Author:
cfinke
Message:

Using plugins_url() to generate the plugin URL instead of hardcoding it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wordpress-feed-statistics/trunk/feed-statistics.php

    r609643 r609644  
    767767 
    768768function feed_statistics_get_plugin_url() { 
    769     if (!defined('WP_CONTENT_URL')) { 
    770         define('WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); 
    771     } 
    772      
    773     $plugin_url = WP_CONTENT_URL . '/plugins/wordpress-feed-statistics/feed-statistics.php'; 
    774      
    775     return $plugin_url; 
     769    return plugins_url( 'feed-statistics.php', __FILE__ ); 
    776770} 
    777771 
Note: See TracChangeset for help on using the changeset viewer.