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

WordPress Trac noreply at wordpress.org
Sat Oct 22 18:24:49 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 TimothyBlynJacobs):

 Replying to [comment:4 brianhenryie]:

 > I looked at using `validate_callback` but it is invoked per parameter,
 i.e. if both are missing, it is never called, so it can't impose a "one of
 these must be present" requirement.

 You can set a `validate_callback` at the route-level now alongside
 `callback` and `args`.

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


More information about the wp-trac mailing list