[wp-trac] [WordPress Trac] #21848: A single space in the image caption breaks alignment

WordPress Trac noreply at wordpress.org
Wed Apr 1 16:03:38 UTC 2015


#21848: A single space in the image caption breaks alignment
--------------------------+-----------------------------
 Reporter:  luffer        |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  low           |   Milestone:  4.2
Component:  Media         |     Version:  3.4.2
 Severity:  trivial       |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by wonderboymusic):

 In [changeset:"31958"]:
 {{{
 #!CommitTicketReference repository="" revision="31958"
 When editing an image from the editor, and the image has a value for
 alignment (but not for `width` or `caption`), don't bail without first
 checking that the alignment's value is not `alignnone`. If so, add the
 `class` to the `<a>` before bailing.

 See #21848.
 }}}

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


More information about the wp-trac mailing list