[wp-trac] [WordPress Trac] #34707: Separate out the namespace from the path in rest_url

WordPress Trac noreply at wordpress.org
Tue Nov 17 11:42:55 UTC 2015


#34707: Separate out the namespace from the path in rest_url
--------------------------+------------------------------
 Reporter:  rmccue        |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:
--------------------------+------------------------------
Changes (by rmccue):

 * keywords:   => dev-feedback
 * type:  defect (bug) => enhancement


Comment:

 @danielbachhuber @rachelbaker @joehoyle I'm not sure I want to change this
 and break BC so late; what if we accept both a string (of
 `namespace/route`) ''and'' and array of `namespace, route`? Taking a
 string lets us keep BC and is relatively concise, array-form means you
 don't have to build it yourself. Win-win?

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


More information about the wp-trac mailing list