From ffb8ae1a63a65e0c1c1390d15e71e7ce615fb6df Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 24 Sep 2015 03:34:24 +0000 Subject: [PATCH] Date/Time: Add unit tests for `the_date()`. Props jubstuff. Fixes #33750. Built from https://develop.svn.wordpress.org/trunk@34474 git-svn-id: http://core.svn.wordpress.org/trunk@34438 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 9d22905b8c..6ec16b72b0 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -1898,7 +1898,7 @@ function the_date_xml() { function the_date( $d = '', $before = '', $after = '', $echo = true ) { global $currentday, $previousday; - if ( $currentday != $previousday ) { + if ( is_new_day() ) { $the_date = $before . get_the_date( $d ) . $after; $previousday = $currentday; diff --git a/wp-includes/version.php b/wp-includes/version.php index c532c2f807..d78634d777 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34473'; +$wp_version = '4.4-alpha-34474'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.