diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 6f9dd226d8..487a898e4c 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -15,6 +15,7 @@
tests/phpunit/tests/image/editor.php
tests/phpunit/tests/image/editor_gd.php
tests/phpunit/tests/image/editor_imagick.php
+ tests/phpunit/tests/oembed/headers.php
diff --git a/src/wp-includes/class-wp-oembed-controller.php b/src/wp-includes/class-wp-oembed-controller.php
index 0fc25ba817..2da7f3e5db 100644
--- a/src/wp-includes/class-wp-oembed-controller.php
+++ b/src/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/src/wp-includes/embed-functions.php b/src/wp-includes/embed-functions.php
index ad5bfd711e..9e13c6e539 100644
--- a/src/wp-includes/embed-functions.php
+++ b/src/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/src/wp-includes/embed-template.php b/src/wp-includes/embed-template.php
index 5cfa8e30d1..7a70b1ddd7 100644
--- a/src/wp-includes/embed-template.php
+++ b/src/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() ) :
-