Forums

[Plugin: Post Links] Post links and 2.6's moving wp-content (2 posts)

  1. Laogeodritt
    Member
    Posted 1 year ago #

    Hello,

    I'd just like to note to the author and to WP2.6 users using or wishing to use this plugin that changing the location of wp-content in Wordpress 2.6 breaks this plugin. For any users affected by this wishing to use it, though, it's a very simple fix.

    At line 205 is the following:

    $path = get_option('siteurl') . '/wp-content/plugins/' . basename(dirname(__FILE__)) . '/post-links-js.php';

    Replace it with these two lines:

    if ( defined('WP_PLUGIN_URL') ) $path = WP_PLUGIN_URL . '/' . dirname(plugin_basename(__FILE__)). '/post-links-js.php';
    	else $path = get_option('siteurl') . '/wp-content/plugins/' . basename(dirname(__FILE__)) . '/post-links-js.php';

    http://wordpress.org/extend/plugins/post-links/

  2. henrikmelin
    Member
    Posted 1 year ago #

    Thanks for catching this, I'll fix.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags