[wp-trac] [WordPress Trac] #40245: Youtube embeds lack title attribute
WordPress Trac
noreply at wordpress.org
Mon Jan 8 01:33:30 UTC 2018
#40245: Youtube embeds lack title attribute
----------------------------+-----------------------------
Reporter: morriscountynj | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Embeds | Version: 2.9
Severity: normal | Resolution:
Keywords: | Focuses: accessibility
----------------------------+-----------------------------
Comment (by bamadesigner):
I wrote some code to solve this issue for my websites. I don't mind
submitting a patch to get things started, if it's still needed.
Here's how I solved with a filter. Basically it looks for the title in the
embed data array and as a possible existing title attribute. If anything,
even if the title does exist in the iframe markup, it allows for it to be
filtered. If it doesn't exist, it allows for it to be created from the
data array or via filter.
https://github.com/wpcampus/wpcampus-network-
plugin/commit/a48e4c81b1233a7051139046a91b3a19777ea902
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40245#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list