Just changed ticket to not resolved in the hope you see this….
FYI: all code in leaflet-api.php (line 600-635 roughly)
I am not sure if those below are copy and paste mistakes or intentional or mistakes at all! I am not a great coder and just getting started with many things…
Should first and second $_GET be $_POST?
$createdon = isset($_POST['createdon']) && ( $_GET['createdon'] == date('Y-m-d H:i:s',strtotime($_GET['createdon'])) ) ? $_POST['createdon'] : (isset($_GET['createdon']) && ( $_GET['createdon'] == date('Y-m-d H:i:s',strtotime($_GET['createdon'])) ) ? $_GET['createdon'] : current_time('mysql',0));
also here use of [‘createdon’] and $_GET
$updatedon = isset($_POST['updatedon']) && ( $_GET['createdon'] == date('Y-m-d H:i:s',strtotime($_GET['createdon'])) ) ? $_POST['updatedon'] : (isset($_GET['updatedon']) && ( $_GET['createdon'] == date('Y-m-d H:i:s',strtotime($_GET['createdon'])) ) ? $_GET['updatedon'] : current_time('mysql',0));
And I do not understand the $query_view['kml_timestamp']
variable which only exists in this place in your whole plugin files. Could that be a mistake too?
$_GET['kml_timestamp']) && ( $_GET['kml_timestamp'] == date('Y-m-d H:i:s',strtotime($_GET['kml_timestamp'])) ) ? $_GET['kml_timestamp'] : $query_view['kml_timestamp']);