Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 985d237

Browse files
committed
Merge branch 'develop'
2 parents 19f3b7f + 103950b commit 985d237

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

WordPressKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "WordPressKit"
3-
s.version = "4.0.0"
3+
s.version = "4.1.0-beta.1"
44
s.summary = "WordPressKit offers a clean and simple WordPress.com and WordPress.org API."
55

66
s.description = <<-DESC

WordPressKit/StatsServiceRemoteV2.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public class StatsServiceRemoteV2: ServiceRemoteWordPressComREST {
108108
}
109109

110110
public func getDetails(forPostID postID: Int, completion: @escaping ((StatsPostDetails?, Error?) -> Void)) {
111-
let path = self.path(forEndpoint: "sites/\(siteID)/post/\(postID)/", withVersion: ._1_1)
111+
let path = self.path(forEndpoint: "sites/\(siteID)/stats/post/\(postID)/", withVersion: ._1_1)
112112

113113
wordPressComRestApi.GET(path, parameters: [:], success: { (response, _) in
114114
guard

WordPressKitTests/StatsRemoteV2Tests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class StatsRemoteV2Tests: RemoteTestCase, RESTTestable {
3434
var siteVisitsDataEndpoint: String { return "sites/\(siteID)/stats/visits/" }
3535
var sitePostsDataEndpoint: String { return "sites/\(siteID)/stats/top-posts/" }
3636
var sitePublishedPostsEndpoint: String { return "sites/\(siteID)/posts/" }
37-
var sitePostDetailsEndpoint: String { return "sites/\(siteID)/post/9001" }
37+
var sitePostDetailsEndpoint: String { return "sites/\(siteID)/stats/post/9001" }
3838

3939

4040
var remote: StatsServiceRemoteV2!

0 commit comments

Comments
 (0)