Jetpack_JSON_API_Core_Endpoint

The Jetpack by WordPress.com Jetpack JSON API Core Endpoint class.

Defined (1)

The class is defined in the following location(s).

/json-endpoints/jetpack/class.jetpack-json-api-core-endpoint.php  
  1. class Jetpack_JSON_API_Core_Endpoint extends Jetpack_JSON_API_Endpoint { 
  2. // POST /sites/%s/core 
  3. // POST /sites/%s/core/update 
  4. protected $needed_capabilities = 'manage_options'; 
  5. protected $new_version; 
  6. protected $log; 
  7.  
  8. public function result() { 
  9. global $wp_version; 
  10.  
  11. return array( 
  12. 'version' => ( empty( $this->new_version ) ) ? $wp_version : $this->new_version,  
  13. 'autoupdate' => Jetpack_Options::get_option( 'autoupdate_core', false ),  
  14. 'log' => $this->log,  
  15. ); 
  16.