summaryrefslogtreecommitdiffstats
path: root/wp-includes/rss.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:22 +0000
commitfc0a79914946dac00ccd51b1aacffe267de7210e (patch)
tree1403384efbfe8f8776ff60aaa40f7d535c02c822 /wp-includes/rss.php
parentReleasing progress-linux version 6.5.5+dfsg1-1~progress7.99u1. (diff)
downloadwordpress-fc0a79914946dac00ccd51b1aacffe267de7210e.tar.xz
wordpress-fc0a79914946dac00ccd51b1aacffe267de7210e.zip
Merging upstream version 6.6.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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);