Title: jopher91's Replies | WordPress.org

---

# jopher91

  [  ](https://wordpress.org/support/users/jopher91/)

 *   [Profile](https://wordpress.org/support/users/jopher91/)
 *   [Topics Started](https://wordpress.org/support/users/jopher91/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jopher91/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jopher91/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jopher91/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jopher91/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jopher91/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Geolocation] How to get default "off" to geolocation when creating a new post](https://wordpress.org/support/topic/how-to-get-default-off-to-geolocation-when-creating-a-new-post/)
 *  [jopher91](https://wordpress.org/support/users/jopher91/)
 * (@jopher91)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/how-to-get-default-off-to-geolocation-when-creating-a-new-post/#post-1852755)
 * Not sure if this is a feature or a bug, but the fix is easy enough if you’re 
   willing to edit the code of geolocation.php
 * I think the problem is that when ‘public’ and ‘geolocation-on’ are unset (as 
   they are for new posts) the code that checks their values returns an empty string:
   but we’re only setting posts to be non-public and off if the value is explicitly‘
   0’.
 * In the code for the function admin_head(), look for the line:
 * > if(public == ‘0’)
 * and change it to
 * > if((public == ‘0’) || (public == ”))
 * Then make a similar change five lines down:
 * > if((on == ‘0’) || (on == ”))
 * (I guess changing the ‘public’ default is optional; I did, but you might not 
   want to.) I agree, I hope a ‘default off’ becomes available on the settings page.

Viewing 1 replies (of 1 total)