[wp-trac] [WordPress Trac] #30830: Remove unnecessary space after class="postbox when postbox_classes returns an empty string in metaboxes

WordPress Trac noreply at wordpress.org
Wed Dec 24 06:30:51 UTC 2014


#30830: Remove unnecessary space after class="postbox when postbox_classes returns
an empty string in metaboxes
--------------------------+------------------------------
 Reporter:  ShinichiN     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  lowest        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.0
 Severity:  trivial       |  Resolution:
 Keywords:                |     Focuses:  administration
--------------------------+------------------------------
Changes (by nacin):

 * version:  trunk => 3.0


Comment:

 We could remove the class after " and before > pretty easily, but look at
 how much code is required to make it without a space :)

 Could we safely return 'postbox' from postbox_classes()? Is there ever a
 time where that should not be the case?

 This has been this way for a while, going back to at least 3.0, probably
 2.7.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30830#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list