| @@ -175,11 +175,11 @@ | ||
| 175 | 175 | 'author' => self::$authors[ $revision->post_author ]['display_name'], |
| 176 | 176 | 'timestamp' => strtotime( $revision->post_modified ), |
| 177 | 177 | 'date' => sprintf( |
| 178 | 178 | /* translators: 1: Human readable time difference, 2: Date. */ |
| 179 | - esc_html__( '%1$s ago (%2$s)', 'elementor' ), | |
| 180 | - '<time>' . $human_time . '</time>', | |
| 181 | - '<time>' . $date . '</time>' | |
| 179 | + __( '%1$s ago (%2$s)', 'elementor' ), | |
| 180 | + $human_time, | |
| 181 | + $date | |
| 182 | 182 | ), |
| 183 | 183 | 'type' => $type, |
| 184 | 184 | 'typeLabel' => $type_label, |
| 185 | 185 | 'gravatar' => self::$authors[ $revision->post_author ]['avatar'], |
| @@ -246,9 +246,9 @@ | ||
| 246 | 246 | * |
| 247 | 247 | * @param $data |
| 248 | 248 | * |
| 249 | 249 | * @return array |
| 250 | - * @throws \Exception If the revision ID is not set. | |
| 250 | + * @throws \Exception | |
| 251 | 251 | */ |
| 252 | 252 | public static function ajax_get_revision_data( array $data ) { |
| 253 | 253 | if ( ! isset( $data['id'] ) ) { |
| 254 | 254 | throw new \Exception( 'You must set the revision ID.' ); |
| @@ -277,9 +277,9 @@ | ||
| 277 | 277 | /** |
| 278 | 278 | * @since 2.0.0 |
| 279 | 279 | * @access public |
| 280 | 280 | * @static |
| 281 | - * @param array $return_data | |
| 281 | + * @param array $return_data | |
| 282 | 282 | * @param Document $document |
| 283 | 283 | * |
| 284 | 284 | * @return array |
| 285 | 285 | */ |
| @@ -356,9 +356,9 @@ | ||
| 356 | 356 | return []; |
| 357 | 357 | } |
| 358 | 358 | |
| 359 | 359 | /** |
| 360 | - * @throws \Exception If the user doesn't have permissions or not found. | |
| 360 | + * @throws \Exception | |
| 361 | 361 | */ |
| 362 | 362 | public static function ajax_get_revisions( $data ) { |
| 363 | 363 | Plugin::$instance->documents->check_permissions( $data['editor_post_id'] ); |
| 364 | 364 | |