WordPress.org

WordPRess GSoC Trac

Opened 7 months ago

Closed 7 months ago

#376 closed defect (fixed)

Wrong URL of wp-api.js script

Reported by: tareq1988 Owned by: rmccue
Milestone: Priority: normal
Component: JSON REST API Keywords:
Cc:

Description

The register URL of wp-api.js is wrong right now.

plugins_url( dirname( __FILE__ ) . '/wp-api.js' )

Which should be

plugins_url( '/wp-api.js', __FILE__ )

Change History (2)

comment:1 rmccue7 months ago

  • Owner set to rmccue
  • Status changed from new to accepted

Thanks, will fix momentarily.

comment:2 rmccue7 months ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 2343:

Register the correct URL for the JS library

Fixes #376

Note: See TracTickets for help on using tickets.