Skip to content

Commit 4c4bc03

Browse files
authored
Merge pull request #19210 from wordpress-mobile/core-data-persistent-container
Fix an issue where the `persistentContainer` ivar isn't set
2 parents 9f73bf2 + 9223f19 commit 4c4bc03

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

WordPress/Classes/Utility/ContextManager.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ - (NSPersistentContainer *)persistentContainer
232232

233233
// Initialize the container
234234
NSPersistentContainer *persistentContainer = [[NSPersistentContainer alloc] initWithName:@"WordPress" managedObjectModel:self.managedObjectModel];
235+
_persistentContainer = persistentContainer;
235236
persistentContainer.persistentStoreDescriptions = @[self.storeDescription];
236237
[persistentContainer loadPersistentStoresWithCompletionHandler:^(NSPersistentStoreDescription *description, NSError *error) {
237238
if (error != nil) {

0 commit comments

Comments
 (0)