Support » Plugin: Sharedaddy » [Plugin: Sharedaddy] Feature request: Allow symlinks

  • 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:

    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’)”.

  • The topic ‘[Plugin: Sharedaddy] Feature request: Allow symlinks’ is closed to new replies.