From 6a18efb313090b1e353c4e86ab64708d3b3eb23c Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Wed, 7 Oct 2015 11:01:25 +0000 Subject: [PATCH] Embeds: After [34903], remove an accidentally included text domain, and exclude a test failing in PHP 5.2. Built from https://develop.svn.wordpress.org/trunk@34904 git-svn-id: http://core.svn.wordpress.org/trunk@34869 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-oembed-controller.php | 2 +- wp-includes/embed-functions.php | 6 +++--- wp-includes/embed-template.php | 19 +++++++++---------- wp-includes/version.php | 2 +- 4 files changed, 14 insertions(+), 15 deletions(-) diff --git a/wp-includes/class-wp-oembed-controller.php b/wp-includes/class-wp-oembed-controller.php index 0fc25ba817..2da7f3e5db 100644 --- a/wp-includes/class-wp-oembed-controller.php +++ b/wp-includes/class-wp-oembed-controller.php @@ -88,7 +88,7 @@ final class WP_oEmbed_Controller { if ( false === $data ) { status_header( 404 ); - return __( 'Invalid URL.', 'oembed-api' ); + return __( 'Invalid URL.' ); } if ( 'json' === $request['format'] ) { diff --git a/wp-includes/embed-functions.php b/wp-includes/embed-functions.php index ad5bfd711e..9e13c6e539 100644 --- a/wp-includes/embed-functions.php +++ b/wp-includes/embed-functions.php @@ -484,7 +484,7 @@ JS; esc_url( $embed_url ), absint( $width ), absint( $height ), - esc_attr__( 'Embedded WordPress Post', 'oembed-api' ) + esc_attr__( 'Embedded WordPress Post' ) ); /** @@ -748,11 +748,11 @@ function wp_oembed_excerpt_more( $more_string ) { } return sprintf( - _x( '… %s', 'read more link', 'oembed-api' ), + _x( '… %s', 'read more link' ), sprintf( '%s', get_the_permalink(), - __( 'Read more', 'oembed-api' ) + __( 'Read more' ) ) ); } diff --git a/wp-includes/embed-template.php b/wp-includes/embed-template.php index 5cfa8e30d1..7a70b1ddd7 100644 --- a/wp-includes/embed-template.php +++ b/wp-includes/embed-template.php @@ -161,8 +161,7 @@ if ( have_posts() ) : _n( '%s Comment', '%s Comments', - get_comments_number(), - 'oembed-api' + get_comments_number() ), absint( get_comments_number() ) ); @@ -172,7 +171,7 @@ if ( have_posts() ) :
@@ -183,29 +182,29 @@ if ( have_posts() ) :

- +

- @@ -216,10 +215,10 @@ if ( have_posts() ) : else : ?>
-

+

-

+