Make WordPress Core


Ignore:
Timestamp:
10/17/2015 01:20:19 AM (9 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/oembed/template.php

    r35225 r35235  
    187187    }
    188188
    189     function test_wp_oembed_excerpt_more_no_embed() {
     189    function test_wp_embed_excerpt_more_no_embed() {
    190190        $GLOBALS['wp_query'] = new WP_Query();
    191191
    192         $this->assertEquals( 'foo bar', wp_oembed_excerpt_more( 'foo bar' ) );
    193     }
    194 
    195     function test_wp_oembed_excerpt_more() {
    196         $post_id = self::$factory->post->create( array(
    197             'post_content' => 'Foo Bar',
    198         ) );
    199 
    200         $this->assertEquals( '', wp_oembed_excerpt_more( '' ) );
    201 
    202         $this->go_to( get_post_embed_url( $post_id ) );
    203 
    204         $actual = wp_oembed_excerpt_more( '' );
     192        $this->assertEquals( 'foo bar', wp_embed_excerpt_more( 'foo bar' ) );
     193    }
     194
     195    function test_wp_embed_excerpt_more() {
     196        $post_id = self::$factory->post->create( array(
     197            'post_content' => 'Foo Bar',
     198        ) );
     199
     200        $this->assertEquals( '', wp_embed_excerpt_more( '' ) );
     201
     202        $this->go_to( get_post_embed_url( $post_id ) );
     203
     204        $actual = wp_embed_excerpt_more( '' );
    205205
    206206        $expected = sprintf(
Note: See TracChangeset for help on using the changeset viewer.