[wp-trac] [WordPress Trac] #20934: class-wp-filesystem-base::search_for_folder returns incorrect path
WordPress Trac
wp-trac at lists.automattic.com
Fri Jul 6 10:44:53 UTC 2012
#20934: class-wp-filesystem-base::search_for_folder returns incorrect path
--------------------------+---------------------
Reporter: cgastrell | Owner: dd32
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 3.5
Component: Filesystem | Version: 3.3.2
Severity: normal | Resolution: fixed
Keywords: needs-patch |
--------------------------+---------------------
Comment (by dd32):
The cause here was that it was using the Value of the array to detect the
end element of the array, when the value exists in multiple locations in
the array, it would erroneously think it had found the final path. The fix
was to use the index of the array instead to determine the position in the
array.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20934#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list