WordPress.org

Ready to get started?Download WordPress

Forums

Sharedaddy
Feature request: Allow symlinks (1 post)

  1. robjuurlink
    Member
    Posted 2 years ago #

    My plugin dir is a symlink and now plugin_dir_url generates a wrong url. It is getting the physical not the logical path so this breaks sharedaddy.

    See for details also: http://core.trac.wordpress.org/ticket/16199

    I changed the following lines in sharing.php to "fix" this. But probably there is a cleaner way.

    if ( !defined( 'WP_SHARING_PLUGIN_URL' ) ) {<br />
      define( 'WP_SHARING_PLUGIN_URL', plugin_dir_url('sharedaddy/dummy.php') );<br />
      define( 'WP_SHARING_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );<br />
    }

    Also replaced every occurrence of "plugin_dir_url(__FILE__)" in sharing-sources.php to "plugin_dir_url('sharedaddy/dummy.php')".

    http://wordpress.org/extend/plugins/sharedaddy/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic