[wp-trac] Re: [WordPress Trac] #3011: Them-Editor theme file name listing problem

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 29 22:39:09 GMT 2006


#3011: Them-Editor theme file name listing problem
------------------------------------------------------+---------------------
 Reporter:  Noct                                      |        Owner:  anonymous
     Type:  defect                                    |       Status:  new      
 Priority:  high                                      |    Milestone:           
Component:  Template                                  |      Version:  2.0.4    
 Severity:  normal                                    |   Resolution:           
 Keywords:  them editor order alphabetical has-patch  |  
------------------------------------------------------+---------------------
Changes (by Nazgul):

  * keywords:  them editor order alphabetical => them editor order
               alphabetical has-patch

Comment:

 It's caused by the PHP function 'dir'.

 The following is noted in the manual for that function:
 The order in which directory entries are returned by the read method is
 system-dependent.

 The only solution I see would be to sort the list, which would give a
 fixed list on all machines. I've attached a patch that does that.

 Only problem is that it's the filenames that are sorted, which leads to a
 non-alphabetical list, because file descriptions are shown on screen
 instead of filenames.

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


More information about the wp-trac mailing list