File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Networking/Networking/Remote Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ public class MediaRemote: Remote, MediaRemoteProtocol {
126126 ParameterKey . dotOrgPageSize: pageSize,
127127 ParameterKey . pageNumber: pageNumber,
128128 ParameterKey . fieldsWordPressSite: ParameterValue . wordPressMediaFields,
129- ParameterKey . mimeType : imagesOnly ? " image " : nil ,
129+ ParameterKey . mediaType : imagesOnly ? " image " : nil ,
130130 ParameterKey . wordPressMediaParent: productID
131131 ] . compactMapValues { $0 }
132132
@@ -302,6 +302,7 @@ public extension MediaRemote {
302302 static let fields : String = " fields "
303303 static let fieldsWordPressSite : String = " _fields "
304304 static let mimeType : String = " mime_type "
305+ static let mediaType : String = " media_type "
305306 static let postID : String = " post_ID "
306307 static let contextKey : String = " context "
307308 static let wordPressMediaParentID = " parent_id "
You can’t perform that action at this time.
0 commit comments