Embeds: Adjust the iframe title attribute for improved accessibility.

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
This commit is contained in:
Pascal Birchler 2016-03-07 10:00:29 +00:00
parent cbda43788b
commit 5d6513f0bc
2 changed files with 9 additions and 2 deletions

View File

@ -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' )
)
)
);
/**

View File

@ -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.