#36250 closed defect (bug) (duplicate)
/wp-json/ using home_url instead of siteurl?
| Reported by: | Compute | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | REST API | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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
@
11 years ago
- Summary WP Rest API: home_url instead of siteurl? → /wp-json/ using home_url instead of siteurl?
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Do you really mean
home_urlhere? It's actually using the the value ofget_option( 'siteurl' )but will probably be changed tohome_urlinstead, see #35647.