PluginProbe
Github Embed / 1.8
Github Embed v1.8
trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.0.1 2.0.2 2.1.0 2.2.0 2.2.1
← All changes | github-api.php +7 -9 1.51.8 View file →
@@ -1,19 +1,19 @@
1 1 <?php
2 2
3 -
4 -
5 -// 0 - none
3 +// 0 - none.
6 4 define( 'GEDEBUG_NONE', 0 );
7 5
8 -// 1 - call logging only
6 +// 1 - call logging only.
9 7 define( 'GEDEBUG_CALL', 1 );
10 8
11 -// 2 - calls, and responses
9 +// 2 - calls, and responses.
12 10 define( 'GEDEBUG_RESP', 2 );
13 11
14 -// Selected debug level
15 -define( 'GITHUB_API_LEVEL', GEDEBUG_NONE );
12 +// Selected debug level.
13 +if ( ! defined( 'GITHUB_API_LEVEL' ) ) {
14 + define( 'GITHUB_API_LEVEL', GEDEBUG_NONE );
15 +}
16 16
17 17
18 18 /**
19 19 * This class contains all the functions that actually retrieve information from the GitHub API
@@ -54,12 +54,10 @@
54 54 * with GitHub(http://developer.github.com/v3/oauth/) use the filters here to
55 55 * provide the credentials.
56 56 */
57 57 public function set_credentials() {
58 -
59 58 $this->client_id = apply_filters( 'github-embed-client-id', $this->client_id );
60 59 $this->client_secret = apply_filters( 'github-embed-client-secret', $this->client_secret );
61 -
62 60 }
63 61
64 62
65 63