#36250 closed defect (bug) (duplicate)
/wp-json/ using home_url instead of siteurl?
Reported by: | Compute | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | REST API | Keywords: | |
Focuses: | Cc: |
Description
Hi there,
The domain.com/wp-json/ gives an baseurl back. But it seems like its using the home_url instead of siteurl which results in domain.com/wp/ if you have WP installed in a subdirectory. An URL that will just result in a 404.
Is there a reason why its not just using siteurl?
Change History (4)
#1
@
9 years ago
- Summary changed from WP Rest API: home_url instead of siteurl? to /wp-json/ using home_url instead of siteurl?
Note: See
TracTickets for help on using
tickets.
Do you really mean
home_url
here? It's actually using the the value ofget_option( 'siteurl' )
but will probably be changed tohome_url
instead, see #35647.