Use ABSPATH . WPINC rather than dynamically building the include path. see #21183.
git-svn-id: http://core.svn.wordpress.org/trunk@21645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
405a995659
commit
1c0611a1df
|
@ -25,7 +25,7 @@ function wp_simplepie_autoload( $class ) {
|
|||
if ( 0 !== strpos( $class, 'SimplePie_' ) )
|
||||
return;
|
||||
|
||||
$file = dirname( __FILE__ ) . '/' . str_replace( '_', '/', $class ) . '.php';
|
||||
$file = ABSPATH . WPINC . '/' . str_replace( '_', '/', $class ) . '.php';
|
||||
include $file;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue