mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-17 08:05:21 +01:00
wp_list_pages() using wrong time/date fields. Bug 680.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2092 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4ec2370af8
commit
2a2f21524e
@ -327,9 +327,9 @@ function wp_list_pages($args = '') {
|
|||||||
// ts field.
|
// ts field.
|
||||||
if (! empty($r['show_date'])) {
|
if (! empty($r['show_date'])) {
|
||||||
if ('modified' == $r['show_date'])
|
if ('modified' == $r['show_date'])
|
||||||
$page_tree[$page->ID]['ts'] = $page->date_modified;
|
$page_tree[$page->ID]['ts'] = $page->time_modified;
|
||||||
else
|
else
|
||||||
$page_tree[$page->ID]['ts'] = $page->date_created;
|
$page_tree[$page->ID]['ts'] = $page->time_created;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The tricky bit!!
|
// The tricky bit!!
|
||||||
|
Loading…
Reference in New Issue
Block a user