Reposting bug report – credit not defined
-
Well, that’s odd – the forums seem to have marked my post as closed before it’s even been opened.
So, reposting my simple bug report:
On line 96 of yahoo!-wheather.php, if credits are not shown, $credit is undefined, throwing a “Notice: Undefined variable” when WP_DEBUG is set to true.
The simple fix is to define it as empty on the previous line, ie:
$credit = ''; if ( $show_credit ) $credit = ' & <a href="https://zourbuth.com/plugins/yahoo-weather/">zourbuth.com</a>';
Cheers,
Christian
https://www.ads-software.com/extend/plugins/yahoo-weather-forecasts/
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Reposting bug report – credit not defined’ is closed to new replies.