[wp-trac] [WordPress Trac] #38040: Untrimed space in styles in video shortcode.

WordPress Trac noreply at wordpress.org
Tue Sep 13 13:03:53 UTC 2016


#38040: Untrimed space in styles in video shortcode.
-----------------------------+-----------------------------
 Reporter:  danielpietrasik  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Widgets          |    Version:  4.6.1
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 [[Image(http://download.qualitypixels.pl/wordpress-bug.png)]]

 The error is in wordpress/wp-includes/media.php file, line
 2590:

 {{{
 $width_rule = sprintf( 'width: %dpx; ', $atts['width'] );
 }}}

 In style attribute there is a single, untrimed space which creates string
 like:

 {{{
 <div style="width: 640px; " class="wp-video">
 }}}

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


More information about the wp-trac mailing list