Date/Time: Add unit tests for the_date().

Props jubstuff.
Fixes #33750.


git-svn-id: https://develop.svn.wordpress.org/trunk@34474 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-09-24 03:33:21 +00:00
parent 9d71ae4122
commit bab2316129
2 changed files with 39 additions and 1 deletions
+1 -1
View File
@@ -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;