From 41d7ac21d89d409cc3c47b7e1e7564c177133f81 Mon Sep 17 00:00:00 2001 From: Matt Bumgardner Date: Thu, 19 Nov 2015 10:13:02 -0600 Subject: [PATCH 1/2] Bugfix for empty posts on initial load --- Classes/WPEditorViewController.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Classes/WPEditorViewController.m b/Classes/WPEditorViewController.m index 80f1bb8..934451e 100644 --- a/Classes/WPEditorViewController.m +++ b/Classes/WPEditorViewController.m @@ -152,8 +152,6 @@ - (void)viewWillAppear:(BOOL)animated [super viewWillAppear:animated]; if (!self.isFirstSetupComplete) { - self.isFirstSetupComplete = YES; - // When restoring state, the navigationController is nil when the view loads, // so configure its appearance here instead. self.navigationController.navigationBar.translucent = NO; @@ -174,6 +172,11 @@ - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; if (self.isFirstSetupComplete) { [self restoreEditSelection]; + } else { + // Note: Very important this is set here otherwise the post will not initially + // load properly in the editor. Please be careful if you make a change here and + // test the editor within WPiOS! + self.isFirstSetupComplete = YES; } } From e32e6a315db9eb294a9476b2d82c3a180718f593 Mon Sep 17 00:00:00 2001 From: Matt Bumgardner Date: Thu, 19 Nov 2015 10:30:50 -0600 Subject: [PATCH 2/2] Updated podspec to 1.0.1 --- WordPress-iOS-Editor.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPress-iOS-Editor.podspec b/WordPress-iOS-Editor.podspec index 43d2e7c..c52724d 100644 --- a/WordPress-iOS-Editor.podspec +++ b/WordPress-iOS-Editor.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "WordPress-iOS-Editor" - s.version = "1.0" + s.version = "1.0.1" s.summary = "Reusable component rich text editor for WordPress.com in an iOS application." s.description = <<-DESC