From 1c66cf519b7b91bfa64b0e6b1470c044f40dcdb7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 23 Aug 2019 01:11:22 +0000 Subject: [PATCH] Date/Time: Introduce `current_datetime()` for better time operations. Returning a `DateTimeImmutable` representation of the current moment in time, this allows for a more flexible and reliable use than `current_time()` provides. Props Rarst. Fixes #47464. git-svn-id: https://develop.svn.wordpress.org/trunk@45883 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/dashboard.php | 2 +- src/wp-includes/functions.php | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index d45f1e2477..8e2469fb80 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -860,7 +860,7 @@ function wp_dashboard_recent_posts( $args ) { echo '