summaryrefslogtreecommitdiffstats
path: root/wp-includes/rss.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/rss.php')
-rw-r--r--wp-includes/rss.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/wp-includes/rss.php b/wp-includes/rss.php
index 4d3f35e..3304ed0 100644
--- a/wp-includes/rss.php
+++ b/wp-includes/rss.php
@@ -63,7 +63,8 @@ class MagpieRSS {
# Check if PHP xml isn't compiled
#
if ( ! function_exists('xml_parser_create') ) {
- return trigger_error( "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." );
+ wp_trigger_error( '', "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." );
+ return;
}
$parser = xml_parser_create();
@@ -387,7 +388,7 @@ class MagpieRSS {
function error( $errormsg, $lvl = E_USER_WARNING ) {
if ( MAGPIE_DEBUG ) {
- trigger_error( $errormsg, $lvl);
+ wp_trigger_error('', $errormsg, $lvl);
} else {
error_log( $errormsg, 0);
}
@@ -823,7 +824,7 @@ class RSSCache {
function error ($errormsg, $lvl=E_USER_WARNING) {
$this->ERROR = $errormsg;
if ( MAGPIE_DEBUG ) {
- trigger_error( $errormsg, $lvl);
+ wp_trigger_error( '', $errormsg, $lvl);
}
else {
error_log( $errormsg, 0);