mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 02:34:38 +00:00
Embeds: After [34903], remove an accidentally included text domain, and exclude a test failing in PHP 5.2.
git-svn-id: https://develop.svn.wordpress.org/trunk@34904 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -161,8 +161,7 @@ if ( have_posts() ) :
|
||||
_n(
|
||||
'%s <span class="screen-reader-text">Comment</span>',
|
||||
'%s <span class="screen-reader-text">Comments</span>',
|
||||
get_comments_number(),
|
||||
'oembed-api'
|
||||
get_comments_number()
|
||||
),
|
||||
absint( get_comments_number() )
|
||||
);
|
||||
@@ -172,7 +171,7 @@ if ( have_posts() ) :
|
||||
<?php endif; ?>
|
||||
<div class="wp-embed-share">
|
||||
<button type="button" class="wp-embed-share-dialog-open"
|
||||
aria-label="<?php esc_attr_e( 'Open sharing dialog', 'oembed-api' ); ?>">
|
||||
aria-label="<?php esc_attr_e( 'Open sharing dialog' ); ?>">
|
||||
<span class="dashicons dashicons-share"></span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -183,29 +182,29 @@ if ( have_posts() ) :
|
||||
<div class="wp-embed-share-dialog-text">
|
||||
<ul class="wp-embed-share-tabs" role="tablist">
|
||||
<li id="wp-embed-share-tab-button-wordpress" class="wp-embed-share-tab-button" role="presentation">
|
||||
<button role="tab" aria-controls="wp-embed-share-tab-wordpress" aria-selected="true" tabindex="0"><?php esc_html_e( 'WordPress Embed', 'oembed-api' ); ?></button>
|
||||
<button role="tab" aria-controls="wp-embed-share-tab-wordpress" aria-selected="true" tabindex="0"><?php esc_html_e( 'WordPress Embed' ); ?></button>
|
||||
</li>
|
||||
<li id="wp-embed-share-tab-button-embed" class="wp-embed-share-tab-button" role="presentation">
|
||||
<button role="tab" aria-controls="wp-embed-share-tab-html" aria-selected="false" tabindex="-1"><?php esc_html_e( 'HTML Embed', 'oembed-api' ); ?></button>
|
||||
<button role="tab" aria-controls="wp-embed-share-tab-html" aria-selected="false" tabindex="-1"><?php esc_html_e( 'HTML Embed' ); ?></button>
|
||||
</li>
|
||||
</ul>
|
||||
<div id="wp-embed-share-tab-wordpress" class="wp-embed-share-tab" role="tabpanel" aria-labelledby="wp-embed-share-tab-button-wordpress" aria-hidden="false">
|
||||
<input type="text" value="<?php the_permalink(); ?>" class="wp-embed-share-input" tabindex="0" readonly/>
|
||||
|
||||
<p class="wp-embed-share-description">
|
||||
<?php _e( 'Copy and paste this URL into your WordPress site to embed', 'oembed-api' ); ?>
|
||||
<?php _e( 'Copy and paste this URL into your WordPress site to embed' ); ?>
|
||||
</p>
|
||||
</div>
|
||||
<div id="wp-embed-share-tab-html" class="wp-embed-share-tab" role="tabpanel" aria-labelledby="wp-embed-share-tab-button-html" aria-hidden="true">
|
||||
<textarea class="wp-embed-share-input" tabindex="0" readonly><?php echo esc_attr( get_post_embed_html( null, 600, 400 ) ); ?></textarea>
|
||||
|
||||
<p class="wp-embed-share-description">
|
||||
<?php _e( 'Copy and paste this code into your site to embed', 'oembed-api' ); ?>
|
||||
<?php _e( 'Copy and paste this code into your site to embed' ); ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="button" class="wp-embed-share-dialog-close" aria-label="<?php esc_attr_e( 'Close sharing dialog', 'oembed-api' ); ?>">
|
||||
<button type="button" class="wp-embed-share-dialog-close" aria-label="<?php esc_attr_e( 'Close sharing dialog' ); ?>">
|
||||
<span class="dashicons dashicons-no"></span>
|
||||
</button>
|
||||
</div>
|
||||
@@ -216,10 +215,10 @@ if ( have_posts() ) :
|
||||
else :
|
||||
?>
|
||||
<div class="wp-embed">
|
||||
<p class="wp-embed-heading"><?php _e( 'Page not found', 'oembed-api' ); ?></p>
|
||||
<p class="wp-embed-heading"><?php _e( 'Page not found' ); ?></p>
|
||||
|
||||
<div class="wp-embed-excerpt">
|
||||
<p><?php _e( 'Error 404! The requested content was not found.', 'oembed-api' ) ?></p>
|
||||
<p><?php _e( 'Error 404! The requested content was not found.' ) ?></p>
|
||||
</div>
|
||||
|
||||
<div class="wp-embed-footer">
|
||||
|
||||
Reference in New Issue
Block a user