Use ABSPATH . WPINC rather than dynamically building the include path. see #21183.

git-svn-id: https://develop.svn.wordpress.org/trunk@21645 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-08-28 17:27:18 +00:00
parent d80e23bf88
commit 96167530ce

View File

@ -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;
}