Fix invalid paths in requires. See r14139. See #12594
git-svn-id: https://develop.svn.wordpress.org/trunk@14151 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a299bd5c3e
commit
a897bc0275
@ -129,7 +129,7 @@ if ( !function_exists('json_encode') ) {
|
||||
global $wp_json;
|
||||
|
||||
if ( !is_a($wp_json, 'Services_JSON') ) {
|
||||
require_once( './class-json.php' );
|
||||
require_once( ABSPATH . WPINC . '/class-json.php' );
|
||||
$wp_json = new Services_JSON();
|
||||
}
|
||||
|
||||
@ -142,7 +142,7 @@ if ( !function_exists('json_decode') ) {
|
||||
global $wp_json;
|
||||
|
||||
if ( !is_a($wp_json, 'Services_JSON') ) {
|
||||
require_once( './class-json.php' );
|
||||
require_once( ABSPATH . WPINC . '/class-json.php' );
|
||||
$wp_json = new Services_JSON();
|
||||
}
|
||||
|
||||
|
@ -1337,7 +1337,7 @@ function wp_expand_dimensions( $example_width, $example_height, $max_width, $max
|
||||
* @return string The original URL on failure or the embed HTML on success.
|
||||
*/
|
||||
function wp_oembed_get( $url, $args = '' ) {
|
||||
require_once( './class-oembed.php' );
|
||||
require_once( ABSPATH . WPINC . '/class-oembed.php' );
|
||||
$oembed = _wp_oembed_get_object();
|
||||
return $oembed->get_html( $url, $args );
|
||||
}
|
||||
@ -1355,7 +1355,7 @@ function wp_oembed_get( $url, $args = '' ) {
|
||||
* @param boolean $regex Whether the $format parameter is in a regex format.
|
||||
*/
|
||||
function wp_oembed_add_provider( $format, $provider, $regex = false ) {
|
||||
require_once( './class-oembed.php' );
|
||||
require_once( ABSPATH . WPINC . '/class-oembed.php' );
|
||||
$oembed = _wp_oembed_get_object();
|
||||
$oembed->providers[$format] = array( $provider, $regex );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user