[wp-trac] [WordPress Trac] #26090: plugins_url() breaks on non-default WP_CONTENT_DIR
WordPress Trac
noreply at wordpress.org
Mon Nov 18 05:14:59 UTC 2013
#26090: plugins_url() breaks on non-default WP_CONTENT_DIR
--------------------------+------------------------------
Reporter: kanuck54 | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: trunk
Severity: normal | Resolution: invalid
Keywords: |
--------------------------+------------------------------
Changes (by kanuck54):
* status: new => closed
* resolution: => invalid
Comment:
define('WP_CONTENT_DIR', '/srv/www/application/local/wp-content');
define('WP_CONTENT_URL', 'http://server.com/wp-content');
WordPress is installed at `/srv/www/application/dist/www/wordpress`.
I did figure it out, though, and it wasn't a regression after all, as far
as I can tell; it turns out the internal function `plugin_basename()` gets
confused when `WP_PLUGIN_DIR` is a symbolic link – which is fair, I
suppose. Setting `WP_PLUGIN_DIR` manually in `wp-config.php` to the
destination of the symbolic link fixes this behaviour.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26090#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list