From 4a1197af2808ccf6aea43f8663a87a7b59124475 Mon Sep 17 00:00:00 2001 From: Stefan Kalscheuer Date: Tue, 28 Apr 2020 17:36:57 +0200 Subject: [PATCH] use time() instead of current_datetime() for WP 4.x compatibility (#6) The function current_datetime() has been introduced in WP 5.3, but the Plugin should maintain compatibility with 4.x for now. --- includes/class-scliveticker.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/class-scliveticker.php b/includes/class-scliveticker.php index b398c12..6337bff 100644 --- a/includes/class-scliveticker.php +++ b/includes/class-scliveticker.php @@ -206,7 +206,7 @@ class SCLiveticker { $output .= ' sclt-ajax" ' . 'data-sclt-ticker="' . $ticker . '" ' . 'data-sclt-limit="' . $limit . '" ' - . 'data-sclt-last="' . current_datetime()->getTimestamp(); + . 'data-sclt-last="' . time(); } $output .= '">