mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Use relative paths when including files, avoiding include_path. fixes #12594, props sorich87.
git-svn-id: https://develop.svn.wordpress.org/trunk@14139 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1332,7 +1332,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( './class-oembed.php' );
|
||||
$oembed = _wp_oembed_get_object();
|
||||
return $oembed->get_html( $url, $args );
|
||||
}
|
||||
@@ -1350,7 +1350,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( './class-oembed.php' );
|
||||
$oembed = _wp_oembed_get_object();
|
||||
$oembed->providers[$format] = array( $provider, $regex );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user