adaptive_images_plugin_get_htaccess_file_path not generic enough
-
I’m giving WordPress its own directory
(see https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory#Method_I_.28Without_URL_change.29)In such a case the adaptive_images_plugin_get_htaccess_file_path() which uses get_home_path() does not detect the .htaccess where it is (one directory up).
I’d add that adaptive_images_plugin_file_permissions() should go away for overcomplexity. Using is_writable() should be enough.
Lastly, the .htaccess-is-ok routing should rather check the presence of the Rewrite itself
RewriteRule.*(jpeg|png).*plugins/adaptive-images/adaptive-images-script.php
rather than the enclosing comments.thank you
- The topic ‘adaptive_images_plugin_get_htaccess_file_path not generic enough’ is closed to new replies.