PHP notice in latest update (1.0.8)
-
With debug turned on, there’s a PHP notice appearing on every page:
Notice: Undefined variable: id in /var/www/l1/syl/wp-content/plugins/before-after-image-compare/plugin.php on line 28
I think you can fix this by changing that line from:
$id = (!$id) ? get_the_ID() : $id;
to this:
$id = empty($id) ? get_the_ID() : $id;
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP notice in latest update (1.0.8)’ is closed to new replies.