Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/hotfix-3.7.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
astralbodies committed Aug 28, 2013
2 parents 5553896 + fff0475 commit 0896557
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 14 deletions.
4 changes: 2 additions & 2 deletions WordPress/Classes/Blog.m
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,11 @@ - (void)setReachable:(BOOL)reachable {
}

- (NSString *)username {
return self.account.username;
return self.account.username ?: @"";
}

- (NSString *)password {
return self.account.password;
return self.account.password ?: @"";
}

#pragma mark -
Expand Down
2 changes: 1 addition & 1 deletion WordPress/Classes/BlogToAccount.m
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ - (BOOL)createDestinationInstancesForSourceInstance:(NSManagedObject *)source
[userInfo setValue:accountLookup forKey:@"accounts"];
}
NSString *lookupKey = [NSString stringWithFormat:@"%@@%@", username, xmlrpc];
NSManagedObject *dest = [accountLookup valueForKey:lookupKey];
NSManagedObject *dest = [accountLookup objectForKey:lookupKey];
if (!dest) {
dest = [NSEntityDescription insertNewObjectForEntityForName:@"Account" inManagedObjectContext:destMOC];
[dest setValue:xmlrpc forKey:@"xmlrpc"];
Expand Down
15 changes: 9 additions & 6 deletions WordPress/Classes/ReaderReblogFormView.m
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,15 @@ - (id)initWithFrame:(CGRect)frame {
self.activityView.frame = frame;

NSNumber *primaryBlogId = [[NSUserDefaults standardUserDefaults] objectForKey:@"wpcom_users_prefered_blog_id"];
[blogs enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
if ([[obj numberForKey:@"blogid"] isEqualToNumber:primaryBlogId]) {
[self setDestinationBlog:obj];
stop = YES;
}
}];

if (primaryBlogId != nil) {
[blogs enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
if ([[obj numberForKey:@"blogid"] isEqualToNumber:primaryBlogId]) {
[self setDestinationBlog:obj];
stop = YES;
}
}];
}
} else if ([blogs count]) {
[self setDestinationBlog:[blogs objectAtIndex:0]];
}
Expand Down
2 changes: 1 addition & 1 deletion WordPress/Classes/WPMobileStats.m
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ + (void)initializeStats
}

NSString *userId = [[NSUserDefaults standardUserDefaults] objectForKey:@"wpcom_user_id"];
[[QuantcastMeasurement sharedInstance] beginMeasurementSessionWithAPIKey:[WordPressComApiCredentials quantcastAPIKey] userIdentifier:userId labels:nil];
[[QuantcastMeasurement sharedInstance] beginMeasurementSessionWithAPIKey:[WordPressComApiCredentials quantcastAPIKey] userIdentifier:[userId md5] labels:nil];
}

+ (void)updateUserIDForStats:(NSString *)userID
Expand Down
2 changes: 1 addition & 1 deletion WordPress/Info-beta.plist
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>3.7</string>
<string>3.7.1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>MinimumOSVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion WordPress/Info-dev.plist
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>3.7</string>
<string>3.7.1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>MinimumOSVersion</key>
Expand Down
4 changes: 2 additions & 2 deletions WordPress/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>3.7</string>
<string>3.7.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -50,7 +50,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>3.7</string>
<string>3.7.1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>MinimumOSVersion</key>
Expand Down

0 comments on commit 0896557

Please sign in to comment.