[wp-trac] Re: [WordPress Trac] #4910: Widgets might get "Array" as CSS class instead of classname

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 11 21:49:27 GMT 2007


#4910: Widgets might get "Array" as CSS class instead of classname
-----------------------------------------+----------------------------------
 Reporter:  f00f                         |        Owner:  anonymous
     Type:  defect                       |       Status:  reopened 
 Priority:  high                         |    Milestone:  2.3      
Component:  General                      |      Version:  2.3      
 Severity:  minor                        |   Resolution:           
 Keywords:  widgets css class has-patch  |  
-----------------------------------------+----------------------------------
Comment (by markjaquith):

 I don't like that, because it only uses the method name, which could be
 quite generic.

 How about this version?  If passed a string, it uses it.  If passed an
 array with a class name and method, it uses them (with _ in the middle).
 If passed an array with an object reference and method, it extracts the
 object's class name and uses that plus the method (with _ in the middle).

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


More information about the wp-trac mailing list