Embeds: Rename files, functions, and hooks added in [34903] to make it more clear what is oEmbed-specific and what isn't.

See https://core.trac.wordpress.org/ticket/34272#comment:7 for full list of renamed functions and hooks.

Props swissspidy.
Fixes #34272.

git-svn-id: https://develop.svn.wordpress.org/trunk@35235 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2015-10-17 01:20:19 +00:00
parent 5c19a7a704
commit 9b591d6b09
9 changed files with 47 additions and 47 deletions
+5 -5
View File
@@ -186,22 +186,22 @@ class Tests_Embed_Template extends WP_UnitTestCase {
$this->assertTrue( false !== strpos( $actual, 'Hello World' ) );
}
function test_wp_oembed_excerpt_more_no_embed() {
function test_wp_embed_excerpt_more_no_embed() {
$GLOBALS['wp_query'] = new WP_Query();
$this->assertEquals( 'foo bar', wp_oembed_excerpt_more( 'foo bar' ) );
$this->assertEquals( 'foo bar', wp_embed_excerpt_more( 'foo bar' ) );
}
function test_wp_oembed_excerpt_more() {
function test_wp_embed_excerpt_more() {
$post_id = self::$factory->post->create( array(
'post_content' => 'Foo Bar',
) );
$this->assertEquals( '', wp_oembed_excerpt_more( '' ) );
$this->assertEquals( '', wp_embed_excerpt_more( '' ) );
$this->go_to( get_post_embed_url( $post_id ) );
$actual = wp_oembed_excerpt_more( '' );
$actual = wp_embed_excerpt_more( '' );
$expected = sprintf(
'&hellip; <a class="wp-embed-more" href="%s" target="_top">Read more</a>',