Notice with PHP 7.4
-
Trying out the latest and greatest (
WP 5.3-beta1-46340,PHP 7.4.0beta4), everything went smooth except for this one notice on the front end:Notice: Trying to access array offset on value of type null in .../wp-content/plugins/autoptimize/classes/autoptimizeImages.php on line 178$_userstatusisnullfor me at that point.Should it be
if ( is_array($_userstatus) && -2 == $_userstatus['Status'] ) {orif ( !is_array($_userstatus) || -2 == $_userstatus['Status'] ) {? Probably the latter, right? I don’t use any CDN so$do_cdnshould gofalse?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Notice with PHP 7.4’ is closed to new replies.