Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#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 @Compute
11 years ago

  • Summary WP Rest API: home_url instead of siteurl? → /wp-json/ using home_url instead of siteurl?

#2 @ocean90
11 years ago

  • Keywords reporter-feedback added

Do you really mean home_url here? It's actually using the the value of get_option( 'siteurl' ) but will probably be changed to home_url instead, see #35647.

#3 @Compute
11 years ago

  • Resolution → duplicate
  • Status new → closed

I think that the 'url' key should be home_url() instead of get_option( 'siteurl' ). But it seems like this is really a duplicate of #35647 so closing this.

#4 @ocean90
11 years ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review
Note: See TracTickets for help on using tickets.