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

WordPress Trac noreply at wordpress.org
Wed Apr 8 17:10:55 UTC 2015


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

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"32079"]:
 {{{
 #!CommitTicketReference repository="" revision="32079"
 Don't allow whitespace-only image captions from the Media modal.

 Captions containing only whitespace trick `image_add_caption()` into
 thinking
 a caption is required, but the empty caption text confuses wpeditimage
 into
 stripping the 'align' class specified by the user.

 Fixes #21848.
 }}}

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


More information about the wp-trac mailing list