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,16 @@
<?php
class Jetpack_JSON_API_Jetpack_Log_Endpoint extends Jetpack_JSON_API_Endpoint {
// GET /sites/%s/jetpack-log
protected $needed_capabilities = 'manage_options';
protected function result() {
$args = $this->input();
$event = ( isset( $args['event'] ) && is_string( $args['event'] ) ) ? $code : false;
$num = ( isset( $args['num'] ) ) ? intval( $num ) : false;
return array(
'log' => Jetpack::get_log( $event, $num )
);
}
}