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:
parent
cbda43788b
commit
5d6513f0bc
|
@ -490,7 +490,14 @@ JS;
|
||||||
esc_url( $embed_url ),
|
esc_url( $embed_url ),
|
||||||
absint( $width ),
|
absint( $width ),
|
||||||
absint( $height ),
|
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' )
|
||||||
|
)
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue