[wp-trac] [WordPress Trac] #56221: Add download URL to plugins REST create (install) endpoint

WordPress Trac noreply at wordpress.org
Sun Oct 23 20:10:41 UTC 2022


#56221: Add download URL to plugins REST create (install) endpoint
-------------------------------------+-------------------------------------
 Reporter:  brianhenryie             |       Owner:  (none)
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Plugins                  |     Version:  5.5
 Severity:  normal                   |  Resolution:
 Keywords:  needs-testing has-unit-  |     Focuses:  administration, rest-
  tests has-patch dev-feedback       |  api
-------------------------------------+-------------------------------------

Comment (by brianhenryie):

 I added the validate_callback, and made it such that one of slug or url
 are required, and if both are present, the url must be a wordpress.org
 download URL. Then during the actual install function, it will pull the
 language pack as specified in the slug, and install the plugin from the
 URL, which would possibly be an older version of the plugin.

 There's definitely room for people to do weird stuff like mismatching a
 slug and plugin. And arguing in the other direction, it would be valid for
 me to modify a .org plugin, host it somewhere else, and want the .org
 language pack while installing it.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56221#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list