[wp-gsoc] [Summer of Code] #337: Only include support files if json_route URL matched

Summer of Code noreply at wordpress.org
Tue Jul 23 19:07:25 UTC 2013


#337: Only include support files if json_route URL matched
--------------------------+---------------------------
 Reporter:  MikeSchinkel  |       Type:  enhancement
   Status:  new           |   Priority:  normal
Milestone:                |  Component:  JSON REST API
 Keywords:                |
--------------------------+---------------------------
 The plugin is loading these files for every page load even if the JSON API
 is not used:

 {{{
 include_once( ABSPATH . WPINC . '/class-IXR.php' );
 include_once( ABSPATH . WPINC . '/class-wp-xmlrpc-server.php' );
 include_once( dirname( __FILE__ ) . '/lib/class-wp-json-server.php' );
 }}}

 Those files should not be loaded until after `json_api_loaded()` verifies
 that `/wp-json.php` was a matched route.

--
Ticket URL: <https://gsoc.trac.wordpress.org/ticket/337>
Summer of Code <https://gsoc.trac.wordpress.org>
My example project


More information about the wp-gsoc mailing list