Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed iframe title after some a11y discussions
  • Loading branch information
notnownikki committed May 11, 2017
commit c223f18571e413c6de2e13eb9cd88105b63a9b5f
5 changes: 2 additions & 3 deletions blocks/library/tweet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ registerBlock( 'core/tweet', {
const { html, url, error, fetching } = this.state;

if ( html ) {
const author = this.state.url.split( '/' )[ 3 ];
/* translators: %s: username of the tweet's author */
const title = wp.i18n.sprintf( wp.i18n.__( 'Tweet from %s' ), author );
/* translators: %s: url of the tweet */
const title = wp.i18n.sprintf( wp.i18n.__( 'Embedded from %s' ), url );
return (
<Sandbox
html={ html }
Expand Down