equal
deleted
inserted
replaced
24 function wp_simplepie_autoload( $class ) { |
24 function wp_simplepie_autoload( $class ) { |
25 if ( 0 !== strpos( $class, 'SimplePie_' ) ) |
25 if ( 0 !== strpos( $class, 'SimplePie_' ) ) |
26 return; |
26 return; |
27 |
27 |
28 $file = ABSPATH . WPINC . '/' . str_replace( '_', '/', $class ) . '.php'; |
28 $file = ABSPATH . WPINC . '/' . str_replace( '_', '/', $class ) . '.php'; |
29 include $file; |
29 include( $file ); |
30 } |
30 } |
31 |
31 |
32 if ( function_exists( 'spl_autoload_register' ) ) { |
32 if ( function_exists( 'spl_autoload_register' ) ) { |
33 /** |
33 /** |
34 * We autoload classes we may not need. |
34 * We autoload classes we may not need. |
1610 |
1610 |
1611 return array($headers, $sniffed); |
1611 return array($headers, $sniffed); |
1612 } |
1612 } |
1613 |
1613 |
1614 /** |
1614 /** |
1615 * Get the error message for the occured error |
1615 * Get the error message for the occurred error. |
1616 * |
1616 * |
1617 * @return string|array Error message, or array of messages for multifeeds |
1617 * @return string|array Error message, or array of messages for multifeeds |
1618 */ |
1618 */ |
1619 public function error() |
1619 public function error() |
1620 { |
1620 { |