PHP “Deprecated” notice on PHP8.3
-
Hello,
My WordPress network (multisite) is running on server with PHP 8.3 and on
/wp-admin/network/update-core.phppage I get this PHP notice/warning:[24-Sep-2025 06:21:32 UTC] PHP Deprecated:
preg_replace():
Passing null to parameter #3 ($subject) of type array|string is deprecated
in ./wp-includes/kses.php on line 1807I’ve traced the issue to
$noticevalue inUpdraftPlus_Admin->core_upgrade_preamble()method inadmin.phpfile on line#1215.Please fix this by forcing STRING value instead of possible NULL.
My temporary fix:
Currently I’m fixing the issue with a must-use plugin with this code:add_filter( 'updraftplus_autobackup_blurb', function( $notice ) {
return (string) $notice;
}, 999 );Thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.