[wp-trac] [WordPress Trac] #46246: get_rest_url() depends depends on get_home_url()

WordPress Trac noreply at wordpress.org
Wed Feb 13 20:48:01 UTC 2019


#46246: get_rest_url() depends depends on get_home_url()
--------------------------+------------------------
 Reporter:  pscibisz      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  REST API      |     Version:  5.0.3
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------
Changes (by swissspidy):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Hi there and welcome to Trac!

 To me this sounds like a duplicate of #37020. See also #42869.

 tl;dr using the home URL is intentional.

 You can use the `rest_url` filter to customize the returned value of the
 `get_rest_url()` function if needed.

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


More information about the wp-trac mailing list