{"id":121287,"date":"2014-03-19T16:18:18","date_gmt":"2014-03-19T23:18:18","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/bug-fix-uncheck-show-google-maps-link-in-venues\/"},"modified":"2014-04-11T07:31:19","modified_gmt":"2014-04-11T14:31:19","slug":"bug-fix-uncheck-show-google-maps-link-in-venues","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-fix-uncheck-show-google-maps-link-in-venues\/","title":{"rendered":"Bug Fix &#8211; Uncheck &#039;Show Google Maps Link&#039; in Venues"},"content":{"rendered":"<p>For anyone having the same problem of <a href=\"\/support\/forums\/topic\/uncheck-show-google-maps-link-in-venues\/\">not being able to Uncheck the box for &#8216;Show Google Maps Link&#8217; in Venues<\/a>, I was able to track down the bug and offer a solution:<\/p>\n<p>You can find these changes at <strong>line 141<\/strong> of <strong>\/wp-content\/plugins\/the-events-calendar\/admin-views\/venue-meta-box.php<\/strong>.<\/p>\n<p>To fix the behavior, make the following change [at line 141] from:<\/p>\n<p><code>$google_map_link_toggle = ( get_post_status($postId) != &#039;auto-draft&#039; || get_post_meta( $postId, &#039;_VenueShowMapLink&#039;, true ) !== &#039;false&#039; ) ? true : false;<\/code><\/p>\n<p>To the following:<\/p>\n<p><code>$google_map_link_toggle = ( get_post_status($postId) != &#039;auto-draft&#039; &amp;&amp; get_post_meta( $postId, &#039;_VenueShowMapLink&#039;, true ) !== &#039;false&#039; ) ? true : false;<\/code><\/p>\n<p>The original code always evaluated to <strong>true<\/strong>, which consistently set the checkbox to be &#8220;checked&#8221;, regardless of the <strong>_VenueShowMapLink<\/strong> post meta value in the database.<\/p>\n<p>Tested against The Events Calendar v3.4.1 and WordPress v3.8.1 using Twenty Twelve v1.3.<\/p>\n","protected":false},"template":"","class_list":["post-121287","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Bug Fix - Uncheck &#039;Show Google Maps Link&#039; in Venues -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-fix-uncheck-show-google-maps-link-in-venues\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bug Fix - Uncheck &#039;Show Google Maps Link&#039; in Venues -\" \/>\n<meta property=\"og:description\" content=\"For anyone having the same problem of not being able to Uncheck the box for &#8216;Show Google Maps Link&#8217; in Venues, I was able to track down the bug and offer a solution: You can find these changes at line 141 of \/wp-content\/plugins\/the-events-calendar\/admin-views\/venue-meta-box.php. To fix the behavior, make the following change [at line 141] from: [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-fix-uncheck-show-google-maps-link-in-venues\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-04-11T14:31:19+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-fix-uncheck-show-google-maps-link-in-venues\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-fix-uncheck-show-google-maps-link-in-venues\/\",\"name\":\"Bug Fix - Uncheck &#039;Show Google Maps Link&#039; in Venues -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-03-19T23:18:18+00:00\",\"dateModified\":\"2014-04-11T14:31:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-fix-uncheck-show-google-maps-link-in-venues\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-fix-uncheck-show-google-maps-link-in-venues\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-fix-uncheck-show-google-maps-link-in-venues\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Bug Fix &#8211; Uncheck &#039;Show Google Maps Link&#039; in Venues\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bug Fix - Uncheck &#039;Show Google Maps Link&#039; in Venues -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-fix-uncheck-show-google-maps-link-in-venues\/","og_locale":"en_US","og_type":"article","og_title":"Bug Fix - Uncheck &#039;Show Google Maps Link&#039; in Venues -","og_description":"For anyone having the same problem of not being able to Uncheck the box for &#8216;Show Google Maps Link&#8217; in Venues, I was able to track down the bug and offer a solution: You can find these changes at line 141 of \/wp-content\/plugins\/the-events-calendar\/admin-views\/venue-meta-box.php. To fix the behavior, make the following change [at line 141] from: [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-fix-uncheck-show-google-maps-link-in-venues\/","article_modified_time":"2014-04-11T14:31:19+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-fix-uncheck-show-google-maps-link-in-venues\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-fix-uncheck-show-google-maps-link-in-venues\/","name":"Bug Fix - Uncheck &#039;Show Google Maps Link&#039; in Venues -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-03-19T23:18:18+00:00","dateModified":"2014-04-11T14:31:19+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-fix-uncheck-show-google-maps-link-in-venues\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-fix-uncheck-show-google-maps-link-in-venues\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-fix-uncheck-show-google-maps-link-in-venues\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Bug Fix &#8211; Uncheck &#039;Show Google Maps Link&#039; in Venues"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/121287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/121287\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=121287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}