[wp-trac] [WordPress Trac] #16744: Theme editor doesn't work on child themes whose parents have a custom theme directory root

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 4 07:17:22 UTC 2011


#16744: Theme editor doesn't work on child themes whose parents have a custom theme
directory root
----------------------------+------------------------------
 Reporter:  DJPaul          |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+------------------------------

Comment (by DJPaul):

 This seems to be caused by the call to validate_file_to_edit() in theme-
 editor.php. The logic when setting $file assumes that the theme root
 directory is always two levels up.

 On a clean debug install, $file looks like:
 {{{
 /Users/paul/Sites/example.com/wp-
 content/plugins/buddypress/Users/paul/Sites/example.com/wp-
 content/themes/test/functions.php
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16744#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list