get_option() buggy with FALSE (1 post)

  1. Geert De Deckere
    Posted 6 years ago #

    update_option('myboolean', FALSE);
    $option = get_option('myboolean', 'default');

    Question: what is the value of $option?

    It should be FALSE, because that is the value that is set by the user in the database. However, all boolean FALSE values seem to return the $default parameter. The $default parameter should only be returned when the option does not exist in the database. Right?


Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 6 years ago by Geert De Deckere
  • This topic is not resolved
  • WordPress version: 2.8.4