does not work with symlinked plugins directory
-
Hi,
I just had a little struggle why this plugin did not work for me. In our development environment we use a symlinked plugin directory.
In /like-dislike-counter-for-posts-pages-and-comments/ajax_counter.php line 4
if (!$changedDir)$changedDir = preg_replace('|wp-content.*$|','',__FILE__);
I needed to customize a little. My solution is not general purpose but works in my environment:if(file_exists($changedDir.'/wp-config.php')) include_once($changedDir.'/wp-config.php'); else include_once($_SERVER['DOCUMENT_ROOT'] . '/wp-config.php');
https://www.ads-software.com/extend/plugins/like-dislike-counter-for-posts-pages-and-comments/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘does not work with symlinked plugins directory’ is closed to new replies.