WordPress.org

WordPRess GSoC Trac

Opened 9 months ago

Closed 9 months ago

#336 closed defect (fixed)

Undefined index: json_route

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

Description

The follow error occurs on any page load where the 'template_redirect' hook fires:

Notice: Undefined index: json_route in 
/Users/me/Sites/mysite/www/wp-content/plugins/json-rest-api/plugin.php 
on line 31

Using WP_DEBUG during development could expose these problems early.

Change History (1)

comment:1 rmccue9 months ago

  • Owner set to rmccue
  • Resolution set to fixed
  • Status changed from new to closed

In 2149:

Ensure we check json_route before using it

Fixes #336

Note: See TracTickets for help on using tickets.