PHP Notice after update
-
Hi,
After update I’m getting an error:PHP Notice: Trying to get property ‘ID’ of non-object in (…)\wp-content\plugins\wp-lightbox-2\wp-lightbox-2.php on line 155
The mentioned line:
$id = ($post->ID) ? $post->ID : -1;
I was able to fix this issue by changing this line to:
$id = $post->ID ?? -1;
Please consider hotfix
PHP 7.3/7.4
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP Notice after update’ is closed to new replies.