From 0e41b5d52fdc6af6442816b5f465c9db9f84e126 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 19 Sep 2024 06:51:18 +0200 Subject: Adding upstream version 6.6.1+dfsg1. Signed-off-by: Daniel Baumann --- wp-includes/rss.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'wp-includes/rss.php') 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); -- cgit v1.2.3