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

Commit 28174ac

Browse files
authored
Merge pull request #634 from wordpress-mobile/task/add-tag-parameter
Add tag parameter to /posts
2 parents 5ce3d14 + 1fe35d5 commit 28174ac

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ _None._
3636

3737
_None._
3838

39-
### New Features
40-
41-
- Add an API in `DomainServiceRemote` to fetch All Domains. [#626]
42-
4339
### Bug Fixes
4440

4541
_None._
@@ -48,6 +44,12 @@ _None._
4844

4945
_None._
5046

47+
## 8.8.0
48+
49+
### New Features
50+
51+
Add `tag` parameter to `PostServiceRemoteOptions` [#634]
52+
5153
## 8.7.1
5254

5355
### Bug Fixes

WordPressKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Pod::Spec.new do |s|
44
s.name = 'WordPressKit'
5-
s.version = '8.7.1'
5+
s.version = '8.8.0'
66

77
s.summary = 'WordPressKit offers a clean and simple WordPress.com and WordPress.org API.'
88
s.description = <<-DESC

WordPressKit/PostServiceRemoteOptions.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,9 @@ typedef NS_ENUM(NSUInteger, PostServiceResultsOrdering) {
7777
*/
7878
- (NSString *)meta;
7979

80+
/**
81+
The tag to filter by.
82+
*/
83+
- (NSString *)tag;
84+
8085
@end

WordPressKit/PostServiceRemoteREST.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
static NSString * const RemoteOptionKeySearch = @"search";
1818
static NSString * const RemoteOptionKeyAuthor = @"author";
1919
static NSString * const RemoteOptionKeyMeta = @"meta";
20+
static NSString * const RemoteOptionKeyTag = @"tag";
2021

2122
static NSString * const RemoteOptionValueOrderAscending = @"ASC";
2223
static NSString * const RemoteOptionValueOrderDescending = @"DESC";
@@ -418,7 +419,10 @@ - (NSDictionary *)dictionaryWithRemoteOptions:(id <PostServiceRemoteOptions>)opt
418419
if (options.meta.length > 0) {
419420
[remoteParams setObject:options.meta forKey:RemoteOptionKeyMeta];
420421
}
421-
422+
if (options.tag.length > 0) {
423+
[remoteParams setObject:options.tag forKey:RemoteOptionKeyTag];
424+
}
425+
422426
return remoteParams.count ? [NSDictionary dictionaryWithDictionary:remoteParams] : nil;
423427
}
424428

0 commit comments

Comments
 (0)