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
This commit is contained in:
parent
8c59e2f8f9
commit
6ba60d72ad
|
@ -132,7 +132,7 @@ if ( 0 != $post->ID ) {
|
||||||
$stamp = __('Scheduled for: %1$s at %2$s');
|
$stamp = __('Scheduled for: %1$s at %2$s');
|
||||||
} else if ( 'publish' == $post->post_status ) { // already published
|
} else if ( 'publish' == $post->post_status ) { // already published
|
||||||
$stamp = __('Published on: %1$s at %2$s');
|
$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');
|
$stamp = __('Publish immediately');
|
||||||
} else { // draft, 1 or more saves, date specified
|
} else { // draft, 1 or more saves, date specified
|
||||||
$stamp = __('Publish on: %1$s at %2$s');
|
$stamp = __('Publish on: %1$s at %2$s');
|
||||||
|
|
|
@ -118,7 +118,7 @@ if ( 0 != $post->ID ) {
|
||||||
$stamp = __('Scheduled for: %1$s at %2$s');
|
$stamp = __('Scheduled for: %1$s at %2$s');
|
||||||
} else if ( 'publish' == $post->post_status ) { // already published
|
} else if ( 'publish' == $post->post_status ) { // already published
|
||||||
$stamp = __('Published on: %1$s at %2$s');
|
$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');
|
$stamp = __('Publish immediately');
|
||||||
} else { // draft, 1 or more saves, date specified
|
} else { // draft, 1 or more saves, date specified
|
||||||
$stamp = __('Publish on: %1$s at %2$s');
|
$stamp = __('Publish on: %1$s at %2$s');
|
||||||
|
|
Loading…
Reference in New Issue