Skip to content

Commit f263100

Browse files
committed
Moving App Review URL to a constant.
1 parent 9a2e25f commit f263100

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WordPress/Classes/Utility/Ratings/AppRatingUtility.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ @implementation AppRatingUtility
2828
NSString *const AppRatingLikedCurrentVersion = @"AppRatingLikedCurrentVersion";
2929
NSString *const AppRatingUserLikeCount = @"AppRatingUserLikeCount";
3030
NSString *const AppRatingUserDislikeCount = @"AppRatingUserDislikeCount";
31+
NSString *const AppRatingDefaultAppReviewUrl = @"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=335703880&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8";
3132

3233
NSString *const AppReviewPromptDisabledUrl = @"https://api.wordpress.org/iphoneapp/app-review-prompt-check/1.0/";
3334

@@ -332,7 +333,7 @@ + (NSString *)appReviewUrl
332333
{
333334
AppRatingUtility *sharedInstance = [AppRatingUtility sharedInstance];
334335
if (sharedInstance.appReviewUrl.length == 0) {
335-
return [NSString stringWithFormat:@"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=%@&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8", WPiTunesAppId];
336+
return AppRatingDefaultAppReviewUrl;
336337
} else {
337338
return sharedInstance.appReviewUrl;
338339
}

0 commit comments

Comments
 (0)