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

Commit 976f035

Browse files
committed
Return visible sites only by default
1 parent ba542ba commit 976f035

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/WordPressKit/Services/AccountServiceRemoteREST.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,11 @@ - (void)getBlogsWithParameters:(NSDictionary *)parameters
354354
{
355355
NSString *requestUrl = [self pathForEndpoint:@"me/sites"
356356
withVersion:WordPressComRESTAPIVersion_1_2];
357+
if (parameters[@"site_visibility"] == nil) {
358+
NSMutableDictionary *another = [parameters mutableCopy];
359+
another[@"site_visibility"] = @"visible";
360+
parameters = another;
361+
}
357362
[self.wordPressComRESTAPI get:requestUrl
358363
parameters:parameters
359364
success:^(id responseObject, NSHTTPURLResponse *httpResponse) {

0 commit comments

Comments
 (0)