WordPress.org

WordPRess GSoC Trac

Opened 2 years ago

Closed 2 years 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 @rmccue2 years ago

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

Thanks, will fix momentarily.

comment:2 @rmccue2 years 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.