[wp-trac] [WordPress Trac] #40245: Youtube embeds lack title attribute

WordPress Trac noreply at wordpress.org
Fri Mar 15 12:48:02 UTC 2019


#40245: Youtube embeds lack title attribute
--------------------------------------+----------------------------
 Reporter:  morriscountynj            |       Owner:  swissspidy
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:  5.2
Component:  Embeds                    |     Version:  2.9
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  accessibility
--------------------------------------+----------------------------

Comment (by afercia):

 @jrf to my understanding:
 {{{#!php
 <?php
         // Remove the old title.
         $result = preg_replace( $pattern, '', $result );
 }}}

 would remove also the `<iframe` start tag :) the full match of pattern
 includes anything starting with `<iframe` (which we need for the first
 check) and a title attribute.

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


More information about the wp-trac mailing list