File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
WordPress/src/main/java/org/wordpress/android/ui/posts Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2336,8 +2336,9 @@ public void run() {
23362336 boolean isNotRestarting = mRestartEditorOption == RestartEditorOptions .NO_RESTART ;
23372337 if ((status == PostStatus .DRAFT || status == PostStatus .PENDING ) && isPublishable
23382338 && !hasFailedMedia () && NetworkUtils .isNetworkAvailable (getBaseContext ())
2339- && isNotRestarting ) {
2339+ && isNotRestarting && mSite . isUsingWpComRestApi () ) {
23402340 mPostEditorAnalyticsSession .setOutcome (Outcome .SAVE );
2341+ // this method will invoke remote-auto-save which isn't supported on self-hosted sites
23412342 savePostOnlineAndFinishAsync (isFirstTimePublish , doFinish );
23422343 } else {
23432344 mPostEditorAnalyticsSession .setOutcome (Outcome .SAVE );
You can’t perform that action at this time.
0 commit comments