mclude ABSPATH path not compatible with subdirectory install
-
Hello!
I organize my WordPress projects into a WP-Skeleton like folder structure:
https://github.com/markjaquith/WordPress-SkeletonBecause of this, I had an include file I needed to be dynamic, but the mfunc parser uses
ABSPATH
for building the file path and therefor was looking in the wrong place for my include.Instead of
/var/www/mysite.com/content/{mfunc_include_path}
, the parser was returning/var/www/mysite.com/wordpress/{mfunc_include_path}
. this resulted in error messages about not being able to open the file.By modifying line 1386 of W3_PgCache from:
$file = ABSPATH . $file;
to$file = get_template_directory() . '/' . $file;
I was able to get the fragment caching working. However, modifying plugins directly is a big no no.Is there any way to get a filter/hook to set the path, or default to the path using the template directory, rather than the WordPress install directory?
Thanks a ton for the incredible plugin!
- The topic ‘mclude ABSPATH path not compatible with subdirectory install’ is closed to new replies.