WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Weather Forecast – WP Wunderground] Not saving checkbox settings

[Resolved] [Plugin: Weather Forecast – WP Wunderground] Not saving checkbox settings

Viewing 6 replies - 1 through 6 (of 6 total)
  • I noticed this problem also in version 1.2.4. Looking at the code, the problem is on line 160.

    To fix the problem, change line 160 from:
    $checked = (empty($this->showlink) || $this->showlink == ‘yes’)…
    to
    $checked = (empty($this->cache) || $this->cache == ‘yes’)…

    I’ve tested this and it appears to work just fine now. I think this was just a copy-and-paste error when the code was written.

    Thanks for the help!

    Thanks, works just fine when you use the complete line :

    $checked = (empty($this->cache) || $this->cache == ‘yes’) ? ‘ checked=”checked”‘ : ”;

    I’d mark this resolved, but the plugin needs to be updated.

    Plugin Author Zack Katz

    @katzwebdesign

    Fixed in 1.2.5, thanks for sharing.

    Thanks for the quick fix, Zack. 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] [Plugin: Weather Forecast – WP Wunderground] Not saving checkbox settings’ is closed to new replies.