This topic contains 2 replies, has 3 voices. Last updated by Jason (Lead Developer) 3 years, 5 months ago.
Topic Author | Topic |
---|---|
Posted: Thursday Jul 18th, 2013 at 1:00 pm #53644 | |
This is regarding a bug that was causing errors in our installation of s2member using wordpress plugins path re-assignment. The following code in the s2member plugin s2member/includes/classes/utils-s2o.inc.php wp_dir function has a problem in that it does not search all directories in the hierarchy because it reassigns $dir on each iteration but then tries to traverse from that point…focus on the code in the $one_dir_up loop and it’s effect on the outer loops… foreach (array ($starting_dir, $alt_starting_dir) as $directory) Also this unnecessarily starts the search in the s2member folder itself… Sample fixed implementation that successfully searches all folders is as follows: foreach (array ($starting_dir, $alt_starting_dir) as $directory) Thank you for looking into correcting this… |