diff options
Diffstat (limited to 'plugins/jetpack/json-endpoints/class.wpcom-json-api-get-comment-history-endpoint.php')
-rw-r--r-- | plugins/jetpack/json-endpoints/class.wpcom-json-api-get-comment-history-endpoint.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/jetpack/json-endpoints/class.wpcom-json-api-get-comment-history-endpoint.php b/plugins/jetpack/json-endpoints/class.wpcom-json-api-get-comment-history-endpoint.php index 37aa9206..1fa0e1d1 100644 --- a/plugins/jetpack/json-endpoints/class.wpcom-json-api-get-comment-history-endpoint.php +++ b/plugins/jetpack/json-endpoints/class.wpcom-json-api-get-comment-history-endpoint.php @@ -45,7 +45,7 @@ class WPCOM_JSON_API_GET_Comment_History_Endpoint extends WPCOM_JSON_API_Endpoin foreach ( $comment_history as &$item ) { // Times are stored as floating point values in microseconds. // We don't need that precision on the client so let's get rid of the decimal part. - $item['time'] = intval( $item['time'] ); + $item['time'] = (int) $item['time']; } return array( 'comment_history' => $comment_history ); |