first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
class Jetpack_JSON_API_Core_Endpoint extends Jetpack_JSON_API_Endpoint {
// POST /sites/%s/core
// POST /sites/%s/core/update
protected $needed_capabilities = 'manage_options';
protected $new_version;
protected $log;
public function result() {
global $wp_version;
return array(
'version' => ( empty( $this->new_version ) ) ? $wp_version : $this->new_version,
'autoupdate' => Jetpack_Options::get_option( 'autoupdate_core', false ),
'log' => $this->log,
);
}
}