Update review settings.

This commit is contained in:
Hoang Huu
2019-09-27 10:16:36 +07:00
parent 7630299415
commit be22c5afee
4 changed files with 44 additions and 13 deletions

View File

@@ -190,7 +190,7 @@ class Opalestate_Property {
$value = get_post_meta( $this->post_id, $field['id'], true );
}
$value = isset( $field['unit'] ) ? $value . ' ' . $field['unit'] : $value;
$value = isset( $field['unit'] ) && $field['unit'] ? $value . ' ' . $field['unit'] : $value;
$this->metabox_info[ $id ] = [ 'label' => $field['name'], 'value' => $value ];
}