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
This commit is contained in:
Scott Taylor 2015-09-24 03:34:24 +00:00
parent d6155dd405
commit ffb8ae1a63
2 changed files with 2 additions and 2 deletions

View File

@ -1898,7 +1898,7 @@ function the_date_xml() {
function the_date( $d = '', $before = '', $after = '', $echo = true ) { function the_date( $d = '', $before = '', $after = '', $echo = true ) {
global $currentday, $previousday; global $currentday, $previousday;
if ( $currentday != $previousday ) { if ( is_new_day() ) {
$the_date = $before . get_the_date( $d ) . $after; $the_date = $before . get_the_date( $d ) . $after;
$previousday = $currentday; $previousday = $currentday;

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.