From 5d6513f0bc04cc664d1e366d104e8de504dbf77b Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 7 Mar 2016 10:00:29 +0000 Subject: [PATCH] Embeds: Adjust the iframe title attribute for improved accessibility. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes the title attribute from `Embedded WordPress Post` to `"Post name" — site title`. Props ramiy. Fixes #35804. Built from https://develop.svn.wordpress.org/trunk@36873 git-svn-id: http://core.svn.wordpress.org/trunk@36840 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/embed.php | 9 ++++++++- wp-includes/version.php | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/wp-includes/embed.php b/wp-includes/embed.php index 3639a738e8..845c8813de 100644 --- a/wp-includes/embed.php +++ b/wp-includes/embed.php @@ -490,7 +490,14 @@ JS; esc_url( $embed_url ), absint( $width ), absint( $height ), - esc_attr__( 'Embedded WordPress Post' ) + esc_attr( + sprintf( + /* translators: 1: post title, 2: site name */ + __( '“%1$s” — %2$s' ), + get_the_title( $post ), + get_bloginfo( 'name' ) + ) + ) ); /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 75376779a5..097fd96bb2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-beta2-36872'; +$wp_version = '4.5-beta2-36873'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.