mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
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:
@@ -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(
|
||||
'… <a class="wp-embed-more" href="%s" target="_top">Read more</a>',
|
||||
|
||||
Reference in New Issue
Block a user