Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
ScoutHarris committed Apr 23, 2019
2 parents 19f3b7f + 103950b commit 985d237
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion WordPressKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "WordPressKit"
s.version = "4.0.0"
s.version = "4.1.0-beta.1"
s.summary = "WordPressKit offers a clean and simple WordPress.com and WordPress.org API."

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion WordPressKit/StatsServiceRemoteV2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public class StatsServiceRemoteV2: ServiceRemoteWordPressComREST {
}

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

wordPressComRestApi.GET(path, parameters: [:], success: { (response, _) in
guard
Expand Down
2 changes: 1 addition & 1 deletion WordPressKitTests/StatsRemoteV2Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class StatsRemoteV2Tests: RemoteTestCase, RESTTestable {
var siteVisitsDataEndpoint: String { return "sites/\(siteID)/stats/visits/" }
var sitePostsDataEndpoint: String { return "sites/\(siteID)/stats/top-posts/" }
var sitePublishedPostsEndpoint: String { return "sites/\(siteID)/posts/" }
var sitePostDetailsEndpoint: String { return "sites/\(siteID)/post/9001" }
var sitePostDetailsEndpoint: String { return "sites/\(siteID)/stats/post/9001" }


var remote: StatsServiceRemoteV2!
Expand Down

0 comments on commit 985d237

Please sign in to comment.