Skip to content

Commit 31f0bb1

Browse files
committed
Fixed pos medias URL
following this pull request: Afrozaar@9e4ae39 Fix/Fixed bug in media fetch - was not separating postId and context params correctly Afrozaar#75
1 parent 2da37a9 commit 31f0bb1

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/afrozaar/wordpress/wpapi/v2/request

1 file changed

+1
-1
lines changed

src/main/java/com/afrozaar/wordpress/wpapi/v2/request/Request.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public abstract class Request {
3030
public static final String TAXONOMY = "/taxonomies/{slug}";
3131
public static final String TERMS = "/terms/{taxonomySlug}";
3232
public static final String TERM = "/terms/{taxonomySlug}/{termId}";
33-
public static final String POST_MEDIAS = "/media?parent={postId}?context={context}";
33+
public static final String POST_MEDIAS = "/media?parent={postId}&context={context}";
3434
public static final String MEDIAS = "/media";
3535
public static final String MEDIA = "/media/{mediaId}";
3636
public static final String PAGES = "/pages";

0 commit comments

Comments
 (0)