From 6ba60d72ad1b18e083f4cad915a1d078938af6d0 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 30 Sep 2008 23:02:49 +0000 Subject: [PATCH] Show Publish Immediately instead of dave time for drafts. fixes #7806 git-svn-id: http://svn.automattic.com/wordpress/trunk@9044 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-advanced.php | 2 +- wp-admin/edit-page-form.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 99e133d88d..49dbc6a0fa 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -132,7 +132,7 @@ if ( 0 != $post->ID ) { $stamp = __('Scheduled for: %1$s at %2$s'); } else if ( 'publish' == $post->post_status ) { // already published $stamp = __('Published on: %1$s at %2$s'); - } else if ( '0000-00-00 00:00:00' == $post->post_date ) { // draft, 1 or more saves, no date specified + } else if ( '0000-00-00 00:00:00' == $post->post_date_gmt ) { // draft, 1 or more saves, no date specified $stamp = __('Publish immediately'); } else { // draft, 1 or more saves, date specified $stamp = __('Publish on: %1$s at %2$s'); diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index 4596ac6d80..111ffd193a 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -118,7 +118,7 @@ if ( 0 != $post->ID ) { $stamp = __('Scheduled for: %1$s at %2$s'); } else if ( 'publish' == $post->post_status ) { // already published $stamp = __('Published on: %1$s at %2$s'); - } else if ( '0000-00-00 00:00:00' == $post->post_date ) { // draft, 1 or more saves, no date specified + } else if ( '0000-00-00 00:00:00' == $post->post_date_gmt ) { // draft, 1 or more saves, no date specified $stamp = __('Publish immediately'); } else { // draft, 1 or more saves, date specified $stamp = __('Publish on: %1$s at %2$s');