[wp-trac] [WordPress Trac] #23845: Install new theme via FTP failed

WordPress Trac noreply at wordpress.org
Fri Mar 22 12:19:49 UTC 2013


#23845: Install new theme via FTP failed
------------------------------+--------------------------
 Reporter:  Przemyslaw Plewa  |       Type:  defect (bug)
   Status:  new               |   Priority:  normal
Milestone:  Awaiting Review   |  Component:  General
  Version:  3.5.1             |   Severity:  normal
 Keywords:  has-patch         |
------------------------------+--------------------------
 New theme installation via FTP has failed when we specified custom
 FTP_BASE folder.  If we try this theme installation , wordpress shows
 error message: "Unable to locate WordPress theme directory". This was
 because search_for_folder method do not respect FTP_BASE setting and
 allows to walking on parent directories.  All solutions I found in google
 is ugly hacks who only mask the problem but does not resolved it
 I attached patch  example who resolve this problem. I hope is useful and
 will help to repair this bug.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23845>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list