Bug: Undefined variable: delid on WordPress dashboard
-
With
define('WP_DEBUG', true);inwp-config.phpan error can be observed on WordPress dashboard in WP Email Capture metabox:Notice: Undefined variable: delid in /../wp-content/plugins/wp-email-capture/inc/tabledata.php on line 46
Wrong:
if ($limit == 0) { $delid = wp_email_capture_formdelete($result->id, $result->email); }Suggested fix:
if ($limit == 0) { $delid = wp_email_capture_formdelete($result->id, $result->email); } else { $delid = ''; }General note: Please check the whole plugin for these kind of bugs, I showed the free Lite version to a customer who wanted to buy an email capture plugin but then all these notices appeared when they tested on dev-server and scared them away from the plugin, too bad.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Bug: Undefined variable: delid on WordPress dashboard’ is closed to new replies.