[wp-trac] Re: [WordPress Trac] #4131: Edit Theme should allow editing files in subfolders

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 9 04:23:56 GMT 2008


#4131: Edit Theme should allow editing files in subfolders
-----------------------------------+----------------------------------------
 Reporter:  drhallows              |        Owner:  anonymous
     Type:  defect                 |       Status:  new      
 Priority:  normal                 |    Milestone:  2.5      
Component:  Administration         |      Version:  2.0.10   
 Severity:  normal                 |   Resolution:           
 Keywords:  edit themes has-patch  |  
-----------------------------------+----------------------------------------
Changes (by DD32):

  * keywords:  edit themes hunt-inactive => edit themes has-patch

Comment:

 Patch allows get_themes to see Template files in sub-dirs, Has the main
 impact of allowing the theme editor to view them.

 As a side effect of allowing get_themes() to return template files in
 subdirectories(only a single level -- And stylesheets are not looked for),
 Templates could exist in the folder, Under the current situation template
 files can only exist within the main theme directory.

 As such, I added a function {{{theme_basename()}}} it basically returns
 the path of a file relitive to its theme directory, ie. theme_basename
 ('wp-content/themes/my-theme/extra-templates/template1.php') will return
 'extra-templates/template1.php'. That allows for the templates to continue
 working correctly.

 Templates can now exist in those subdirectories.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4131#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list