mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 23:58:03 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user