File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 186
186
$ pm_status = json_decode (
187
187
wp_remote_retrieve_body (
188
188
wp_remote_get (
189
- 'https://status.postmarkapp.com/api/1.0 /status/ ' ,
189
+ 'https://status.postmarkapp.com/api/v1 /status ' ,
190
190
array (
191
191
'headers ' => array (
192
192
'Accept ' => 'application/json ' ,
203
203
<th><label>Status</label></th>
204
204
205
205
<td>
206
- <?php echo $ pm_status ->status ; ?>
206
+ <?php echo $ pm_status ->page -> state ; ?>
207
207
</td>
208
208
</tr>
209
209
<tr>
210
210
<th><label>Last Checked</label></th>
211
211
<td>
212
212
<?php
213
- $ unix_date = gmdate ( 'U ' , strtotime ( $ pm_status ->lastCheckDate ) );
213
+ $ unix_date = gmdate ( 'U ' , strtotime ( $ pm_status ->page -> updated_at ) );
214
214
$ date_format = get_option ( 'date_format ' );
215
215
$ time_format = get_option ( 'time_format ' );
216
216
echo wp_date ( "{$ date_format } {$ time_format }" , $ unix_date );
You can’t perform that action at this time.
0 commit comments