Make WordPress Core


Ignore:
Timestamp:
03/07/2016 09:59:02 AM (9 years ago)
Author:
swissspidy
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/embed.php

    r36708 r36873  
    491491        absint( $width ),
    492492        absint( $height ),
    493         esc_attr__( 'Embedded WordPress Post' )
     493        esc_attr(
     494            sprintf(
     495                /* translators: 1: post title, 2: site name */
     496                __( '“%1$s” — %2$s' ),
     497                get_the_title( $post ),
     498                get_bloginfo( 'name' )
     499            )
     500        )
    494501    );
    495502
Note: See TracChangeset for help on using the changeset viewer.