{"id":331,"date":"2010-08-06T16:59:21","date_gmt":"2010-08-06T20:59:21","guid":{"rendered":"http:\/\/erics-test-lab.com\/?p=331"},"modified":"2010-08-06T16:59:21","modified_gmt":"2010-08-06T20:59:21","slug":"the-problem-with-setting-defaults","status":"publish","type":"post","link":"https:\/\/www.esearing.com\/v2010\/2010\/08\/the-problem-with-setting-defaults\/","title":{"rendered":"The problem with setting defaults"},"content":{"rendered":"<p>Suppose you have a nice little yes\/no selector on a form. And while you are testing you set the default value as &#8220;n&#8221;.<br \/>\nSomeday someone will come along and switch all the values to &#8220;y&#8221; in your database, and you will be scratching your head for hours wondering why your results are not showing up as expected when you query them. Then it dawns on you. Argggg&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Suppose you have a nice little yes\/no selector on a form. And while you are testing you set the default value as &#8220;n&#8221;. Someday someone will come along and switch all the values to &#8220;y&#8221; in your database, and you &hellip; <a href=\"https:\/\/www.esearing.com\/v2010\/2010\/08\/the-problem-with-setting-defaults\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,21],"tags":[],"class_list":["post-331","post","type-post","status-publish","format-standard","hentry","category-coldfusion","category-problems-fixes"],"_links":{"self":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts\/331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/comments?post=331"}],"version-history":[{"count":0,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/posts\/331\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/media?parent=331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/categories?post=331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.esearing.com\/v2010\/wp-json\/wp\/v2\/tags?post=331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}