wp core update 6.6
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user