WordPress.org

Make WordPress Core

Changeset 14151


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

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

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r14139 r14151  
    130130
    131131        if ( !is_a($wp_json, 'Services_JSON') ) {
    132             require_once( './class-json.php' );
     132            require_once( ABSPATH . WPINC . '/class-json.php' );
    133133            $wp_json = new Services_JSON();
    134134        }
     
    143143
    144144        if ( !is_a($wp_json, 'Services_JSON') ) {
    145             require_once( './class-json.php' );
     145            require_once( ABSPATH . WPINC . '/class-json.php' );
    146146            $wp_json = new Services_JSON();
    147147        }
  • 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.