{"id":17687439,"date":"2024-04-15T11:57:44","date_gmt":"2024-04-15T11:57:44","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/test-your-updates-better\/"},"modified":"2024-04-15T11:57:44","modified_gmt":"2024-04-15T11:57:44","slug":"test-your-updates-better","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/test-your-updates-better\/","title":{"rendered":"test your updates better"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Great plugin but please &#8211; test better &#8211; you should test with tracks that do not have time\/date\/elevation per point.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Please update wp-gpx-maps-utils.php (lines 379 &#8211; 383):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$points-&gt;maxEle      = (count($_ele) &gt; 0 ? max( $_ele ) : 0);\n$points-&gt;minEle      = (count($_ele) &gt; 0 ? min( $_ele ) : 0);\n$points-&gt;totalLength = max( $_dist );\n$points-&gt;maxTime     = (count($_time) &gt; 0 ? max( $_time ) : 0);\n$points-&gt;minTime     = (count($_time) &gt; 0 ? min( $_time ) : 0);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If tracks do not contains times(speed) or elevation the code breaks <\/p>\n","protected":false},"template":"","class_list":["post-17687439","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17687439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17687439\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17687439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}