diff --git a/Modules/Sources/WordPressKit/StatsTopPostsTimeIntervalData.swift b/Modules/Sources/WordPressKit/StatsTopPostsTimeIntervalData.swift index f6edaca0ba68..f8602dfd31e2 100644 --- a/Modules/Sources/WordPressKit/StatsTopPostsTimeIntervalData.swift +++ b/Modules/Sources/WordPressKit/StatsTopPostsTimeIntervalData.swift @@ -50,7 +50,6 @@ private extension StatsTopPost { // but with keys just subtly different enough that we need a custom init here. init?(topPostsJSONDictionary jsonDictionary: [String: AnyObject]) { guard - let url = jsonDictionary["href"] as? String, let postID = jsonDictionary["id"] as? Int, let title = jsonDictionary["title"] as? String, let viewsCount = jsonDictionary["views"] as? Int, @@ -62,7 +61,7 @@ private extension StatsTopPost { self.title = title self.date = jsonDictionary["date"] as? String self.postID = postID - self.postURL = URL(string: url) + self.postURL = (jsonDictionary["href"] as? String).flatMap(URL.init) self.viewsCount = viewsCount self.kind = type(of: self).kind(from: typeString) } diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index a3b5e93ecc73..1c5c8c374c10 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -1,6 +1,7 @@ 26.4 ----- * [*] Fix a few minor visual issues on iOS 26 [#24863], [#24863], [#24901], [#24865], [#24866], [#24867], [#24890] +* [*] Fix an issue with "Homepage" not shown in Top List in New Stats [#24902] * [*] [Intelligence] Add support for generating excerpts for posts [#24852] * [*] [Intelligence] Add auto-suggested tags for posts [#24886] * [*] [Intelligence] Add "Summarize Post" features in Reader [#24892]