Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Media] Use wp/v2 endpoint for loading WP media library and updating Product ID #14550

Open
1 task
selanthiraiyan opened this issue Nov 28, 2024 · 1 comment
Open
1 task
Assignees
Labels
feature: add/edit products Related to adding or editing products. priority: medium Planned tasks usually belonging to ongoing projects type: enhancement A request for an enhancement.

Comments

@selanthiraiyan
Copy link
Contributor

selanthiraiyan commented Nov 28, 2024

Problem

We currently use rest/v1.1 endpoints for the following two remote calls. This doesn't work when XMLRPC is disabled on the site.

  1. To load media from WP media library
  2. To link the product with the media ID

Related issue - #14232

Proposed solution

Start using wp/v2 endpoint to load images from media library. This endpoint works even when XMLRPC is disabled.

Internal - p1732776777296839/1732776754.769469-slack-C03L1NF1EA3

TODO

After finishing the above work and releasing it to users.

  • Announce to Happiness team once we longer need XMLRPC for Media.
@selanthiraiyan selanthiraiyan added feature: add/edit products Related to adding or editing products. priority: medium Planned tasks usually belonging to ongoing projects type: enhancement A request for an enhancement. labels Nov 28, 2024
@dangermattic
Copy link
Collaborator

Thanks for reporting! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: add/edit products Related to adding or editing products. priority: medium Planned tasks usually belonging to ongoing projects type: enhancement A request for an enhancement.
Projects
None yet
Development

No branches or pull requests

3 participants