WordPress.org

Make WordPress Core

Changeset 45663


Ignore:
Timestamp:
07/19/2019 04:31:40 AM (4 months ago)
Author:
pento
Message:

Coding Standards: Move wp-includes/class-oembed.php to wp-includes/class-wp-oembed.php.

This renames the file containing the WP_oEmbed class to conform to the coding standards.

This commit also includes:

  • A new class-oembed.php that includes the new file, for anyone that may've been including the file directly.
  • Replaces references to the old filename with the new filename.

See #47632.

Location:
trunk
Files:
1 added
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-oembed-controller.php

    r44154 r45663  
    195195        }
    196196
    197         /** This filter is documented in wp-includes/class-oembed.php */
     197        /** This filter is documented in wp-includes/class-wp-oembed.php */
    198198        $data->html = apply_filters( 'oembed_result', _wp_oembed_get_object()->data2html( (object) $data, $url ), $url, $args );
    199199
  • trunk/src/wp-includes/class-wp-oembed.php

    r45662 r45663  
    555555        $provider_url_with_args = add_query_arg( 'format', $format, $provider_url_with_args );
    556556
    557         /** This filter is documented in wp-includes/class-oembed.php */
     557        /** This filter is documented in wp-includes/class-wp-oembed.php */
    558558        $args = apply_filters( 'oembed_remote_get_args', array(), $provider_url_with_args );
    559559
  • trunk/src/wp-settings.php

    r45611 r45663  
    210210require( ABSPATH . WPINC . '/embed.php' );
    211211require( ABSPATH . WPINC . '/class-wp-embed.php' );
    212 require( ABSPATH . WPINC . '/class-oembed.php' );
     212require( ABSPATH . WPINC . '/class-wp-oembed.php' );
    213213require( ABSPATH . WPINC . '/class-wp-oembed-controller.php' );
    214214require( ABSPATH . WPINC . '/media.php' );
  • trunk/tests/phpunit/tests/oembed/wpOembed.php

    r42343 r45663  
    1515        parent::setUp();
    1616
    17         require_once ABSPATH . WPINC . '/class-oembed.php';
     17        require_once ABSPATH . WPINC . '/class-wp-oembed.php';
    1818        $this->oembed = _wp_oembed_get_object();
    1919
Note: See TracChangeset for help on using the changeset viewer.