Skip to content
This repository was archived by the owner on Dec 13, 2017. It is now read-only.

Commit d25e21b

Browse files
committed
Merge branch 'release/1.0.1' of github.com:wordpress-mobile/WordPress-Editor-iOS into develop
* 'release/1.0.1' of github.com:wordpress-mobile/WordPress-Editor-iOS: Updated podspec to 1.0.1 Bugfix for empty posts on initial load Conflicts: WordPress-iOS-Editor.podspec
2 parents 222d3ea + e32e6a3 commit d25e21b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Classes/WPEditorViewController.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ - (void)viewWillAppear:(BOOL)animated
153153
[super viewWillAppear:animated];
154154

155155
if (!self.isFirstSetupComplete) {
156-
self.isFirstSetupComplete = YES;
157-
158156
// When restoring state, the navigationController is nil when the view loads,
159157
// so configure its appearance here instead.
160158
self.navigationController.navigationBar.translucent = NO;
@@ -175,6 +173,11 @@ - (void)viewDidAppear:(BOOL)animated {
175173
[super viewDidAppear:animated];
176174
if (self.isFirstSetupComplete) {
177175
[self restoreEditSelection];
176+
} else {
177+
// Note: Very important this is set here otherwise the post will not initially
178+
// load properly in the editor. Please be careful if you make a change here and
179+
// test the editor within WPiOS!
180+
self.isFirstSetupComplete = YES;
178181
}
179182
}
180183

0 commit comments

Comments
 (0)