[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
Tue Dec 23 16:09:41 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:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When the postbox_classes() function returns an empty  string, we have an
 unnecessary space after postbox.

 {{{
 <div id="submitdiv" class="postbox " >
 }}}

 {{{
 <div id="formatdiv" class="postbox " >
 }}}


 {{{
 <div id="postimagediv" class="postbox " >
 }}}

 [[Image(http://th-daily.shinichi.me/wp-content/uploads/2014/12
 /src_wordpress-develop_dev_wp-admin_post-new_php.jpg)]]

 This patch gives no unnecessary space when postbox_classes returns an
 empty string.

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


More information about the wp-trac mailing list