[wp-trac] [WordPress Trac] #18829: Cleanup of postbox_classes

WordPress Trac wp-trac at lists.automattic.com
Sat Oct 1 23:37:00 UTC 2011


#18829: Cleanup of postbox_classes
-------------------------------------+------------------------------
 Reporter:  logikal16                |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Template                 |     Version:  3.2.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------

Comment (by logikal16):

 @nacin - Look at the code more closely. The line with $_GET['edit'] is
 useless. It sets $classes to a 1-element array (which the code does in 3
 other instances).

 It'd be easier to set the default value as an empty array, then add more
 classes as needed (as the patch provides).

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


More information about the wp-trac mailing list