diff --git a/packages/editor/src/components/post-publish-panel/prepublish.js b/packages/editor/src/components/post-publish-panel/prepublish.js index 4f8066534bc0c5..79d1e4aec20052 100644 --- a/packages/editor/src/components/post-publish-panel/prepublish.js +++ b/packages/editor/src/components/post-publish-panel/prepublish.js @@ -23,12 +23,26 @@ import MaybePostFormatPanel from './maybe-post-format-panel'; function PostPublishPanelPrepublish( { hasPublishAction, + isBeingScheduled, children, } ) { + let prePublishTitle, prePublishBodyText; + + if ( ! hasPublishAction ) { + prePublishTitle = __( 'Are you ready to submit for review?' ); + prePublishBodyText = __( 'When you’re ready, submit your work for review, and an Editor will be able to approve it for you.' ); + } else if ( isBeingScheduled ) { + prePublishTitle = __( 'Are you ready to schedule?' ); + prePublishBodyText = __( 'Your post will be published at the specified date and time.' ); + } else { + prePublishTitle = __( 'Are you ready to publish?' ); + prePublishBodyText = __( 'Double-check your settings, then use the button to publish your post.' ); + } + return (
-
{ hasPublishAction ? __( 'Are you ready to publish?' ) : __( 'Are you ready to submit for review?' ) }
-

{ hasPublishAction ? __( 'Double-check your settings, then use the button to publish your post.' ) : __( 'When you’re ready, submit your work for review, and an Editor will be able to approve it for you.' ) }

+
{ prePublishTitle }
+

{ prePublishBodyText }

{ hasPublishAction && ( { - const { getCurrentPost } = select( 'core/editor' ); + const { + getCurrentPost, + isEditedPostBeingScheduled, + } = select( 'core/editor' ); return { hasPublishAction: get( getCurrentPost(), [ '_links', 'wp:action-publish' ], false ), + isBeingScheduled: isEditedPostBeingScheduled(), }; } )( PostPublishPanelPrepublish );