wp-api-v2-client-java icon indicating copy to clipboard operation
wp-api-v2-client-java copied to clipboard

Fix/Fixed bug in media fetch - was not separating postId and context params correctly

Open michaelwiles opened this issue 10 months ago • 0 comments

Quite staggering that this is still present.

The endpoint for fetching media for a post is incorrect.

it was

public static final String POST_MEDIAS = "/media?parent={postId}?context={context}";

And is now:

public static final String POST_MEDIAS = "/media?parent={postId}&context={context}";

second ? changed to &

michaelwiles avatar May 03 '24 07:05 michaelwiles