fix error handling old logs #261
This commit is contained in:
parent
418f08d563
commit
72a2737d36
|
@ -112,7 +112,7 @@ class REST_Logs_Controller extends REST_Controller {
|
|||
if(!empty($item)){
|
||||
|
||||
// Hanle logs created before 1.0
|
||||
if ($item->get_log_diffs() && $item->get_value()) {
|
||||
if ( !empty( get_post_meta($item->get_id(), 'value', true) ) && !empty( get_post_meta($item->get_id(), 'log_diffs', true) ) ) {
|
||||
return $this->prepare_legacy_item_for_response($item, $request);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue