forked from WP-API/OAuth2
-
Notifications
You must be signed in to change notification settings - Fork 3
/
plugin.php
39 lines (35 loc) · 1.4 KB
/
plugin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* Plugin Name: OAuth 2 for WordPress
* Description: Connect apps to your site using OAuth 2.
* Version: 0.1.0
* Author: WordPress Core Contributors (REST API Focus)
* Author URI: https://make.wordpress.org/core/
* Text Domain: oauth2
*/
namespace WP\OAuth2;
// Avoid loading twice if loaded via App Connect.
if ( class_exists( 'WP\\OAuth2\\Client' ) ) {
return;
}
require __DIR__ . '/inc/namespace.php';
require __DIR__ . '/inc/class-clientinterface.php';
require __DIR__ . '/inc/class-client.php';
require __DIR__ . '/inc/class-personalclient.php';
require __DIR__ . '/inc/class-scopes.php';
require __DIR__ . '/inc/authentication/namespace.php';
require __DIR__ . '/inc/endpoints/namespace.php';
require __DIR__ . '/inc/endpoints/class-authorization.php';
require __DIR__ . '/inc/endpoints/class-token.php';
require __DIR__ . '/inc/tokens/namespace.php';
require __DIR__ . '/inc/tokens/class-token.php';
require __DIR__ . '/inc/tokens/class-access-token.php';
require __DIR__ . '/inc/tokens/class-authorization-code.php';
require __DIR__ . '/inc/types/class-type.php';
require __DIR__ . '/inc/types/class-base.php';
require __DIR__ . '/inc/types/class-authorization-code.php';
require __DIR__ . '/inc/types/class-implicit.php';
require __DIR__ . '/inc/admin/namespace.php';
require __DIR__ . '/inc/admin/profile/namespace.php';
require __DIR__ . '/inc/admin/profile/personaltokens/namespace.php';
bootstrap();