WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Sharedaddy] Feature request: Allow symlinks

[Plugin: Sharedaddy] Feature request: Allow symlinks

  • robjuurlink
    Member

    @robjuurlink

    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/

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