WordPress.org

Ready to get started?Download WordPress

Forums

Weather Forecast - WP Wunderground
[resolved] Not saving checkbox settings (7 posts)

  1. Rob Roy
    Member
    Posted 2 years ago #

    I've installed it on a WP Network. It saves all of the inputs except the two checkboxes at the bottom, for Show The Love & Caching. It won't allow one or the other box to be checked, only both or neither.

    http://wordpress.org/extend/plugins/wunderground/

  2. dfaltermier
    Member
    Posted 2 years ago #

    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.

  3. Rob Roy
    Member
    Posted 2 years ago #

    Thanks for the help!

  4. Zurd
    Member
    Posted 2 years ago #

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

    $checked = (empty($this->cache) || $this->cache == 'yes') ? ' checked="checked"' : '';

  5. Rob Roy
    Member
    Posted 2 years ago #

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

  6. Zack Katz
    Member
    Plugin Author

    Posted 2 years ago #

    Fixed in 1.2.5, thanks for sharing.

  7. dfaltermier
    Member
    Posted 2 years ago #

    Thanks for the quick fix, Zack. :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic