Make WordPress Core


Ignore:
Timestamp:
04/18/2010 09:51:19 AM (15 years ago)
Author:
dd32
Message:

Fix invalid paths in requires. See r14139. See #12594

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r14145 r14151  
    13381338 */
    13391339function wp_oembed_get( $url, $args = '' ) {
    1340     require_once( './class-oembed.php' );
     1340    require_once( ABSPATH . WPINC . '/class-oembed.php' );
    13411341    $oembed = _wp_oembed_get_object();
    13421342    return $oembed->get_html( $url, $args );
     
    13561356 */
    13571357function wp_oembed_add_provider( $format, $provider, $regex = false ) {
    1358     require_once( './class-oembed.php' );
     1358    require_once( ABSPATH . WPINC . '/class-oembed.php' );
    13591359    $oembed = _wp_oembed_get_object();
    13601360    $oembed->providers[$format] = array( $provider, $regex );
Note: See TracChangeset for help on using the changeset viewer.