Closed svperfecta closed 8 years ago
Note: This is what I found related to this in the WP docs:
http://codex.wordpress.org/Determining_Plugin_and_Content_Directories Related to the above, it's also important to note that PHP's FILE magic-constant resolves symlinks automatically, so if the wp-content or wp-content/plugins or even the individual plugin directory is symlinked, this function will not work right.
Symlinking and plugins is a bigger issue. Are you cc-d on https://core.trac.wordpress.org/ticket/16953
Maybe you will find a more immediate solution there.
I'm definitely not! This is interesting (amazing its been in progress for four years?!) Seems like my solution is a fine patch for now until 3.8?
Closing due to age. Please re-open if needed.
Hi Team -
For various deployment reasons, we're required to have an approved set of plugins and symlink them into our WP directory. There's a bug in the plugin that forces it to resolve the directory of the symlinked plugin, rather than the wp content directory. This fixes it.
For reference, here's what the generated links looked like before:
And here's after:
Also note, there might be a better way to do this, I'm not WP pro :)