[wp-trac] [WordPress Trac] #16953: Allow symlinked plugins
WordPress Trac
noreply at wordpress.org
Tue May 7 16:58:31 UTC 2013
#16953: Allow symlinked plugins
------------------------------------+-----------------------------
Reporter: scribu | Owner:
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+-----------------------------
Comment (by aubreypwd):
I can confirm that the below solution worked for me in using:
{{{
define('WP_PLUGIN_DIR',
realpath('/home/152858/domains/example.com/html/all/wp-content/plugins')
);
define('WP_PLUGIN_URL', 'http://example.com/all/wp-content/plugins');
define('WP_THEMES_DIR',
realpath('/home/152858/domains/example.com/html/all/wp-content/themes') );
define('WP_THEMES_URL', 'http://example.com/all/wp-content/themes');
define('WP_CONTENT_DIR',
realpath('/home/152858/domains/example.com/html/all/wp-content') );
define('WP_CONTENT_URL', 'http://example.com/all/wp-content');
}}}
Replying to [comment:39 markus.magnuson]:
> I resolved all my plugin problems caused by symlinks in the wp-content
path by using the realpath() function in my wp-config.php. I simply
replace this:
> {{{
> define('WP_CONTENT_DIR',$_SERVER['DOCUMENT_ROOT'] . '/wp-content');
> }}}
> With this:
> {{{
> define('WP_CONTENT_DIR', realpath($_SERVER['DOCUMENT_ROOT'] . '/wp-
content'));
> }}}
> Thought that might help anyone ending up in this ticket when
troubleshooting.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16953#comment:57>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list