• Resolved nrosskothen

    (@nrosskothen)


    I am new to WPSSO, but I’m sure this is a bug.

    My Coordinates are:

    Place Latitude: 42.19399
    Place Longitude: -71.18288

    This results in this notice and the Longitude being nulled out – The value of option “place_longitude” must be blank or numeric – resetting this option to its default value.

    I assume it doesn’t like the “-” in the Longitude, but not using it is not an option as the coordinates without the negative are in Bostanlik District, Uzbekistan versus in Greater Boston.

    Please let me know if I am doing something incorrectly.

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author JS Morisset

    (@jsmoriss)

    The https://www.php.net/manual/en/function.is-numeric.php check does not care if the number is negative or positive – they’re both numeric. ?? Make sure there is no leading or trailing space though, as a space is not numeric. I’ll add a trim() function to that check in the next release to remove spaces.

    js.

    Thread Starter nrosskothen

    (@nrosskothen)

    Thank you JS Morisset!

    I’m an idiot and had an extra space from cut and paste.

    Thank you for your hard work on this. I am just starting on WPSSO and will review it once I have some experience.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Coordinates Issue’ is closed to new replies.