PluginProbe
Elementor Website Builder – more than just a page builder / 3.17.2
Elementor Website Builder – more than just a page builder v3.17.2
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | modules/history/revisions-manager.php +6 -6 4.3.0-beta2 → 3.17.2 View file →
@@ -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