-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
28 lines (20 loc) · 861 Bytes
/
functions.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
<?php
add_action('init', 'github_theme_updater_test_init');
function github_theme_updater_test_init() {
include_once('updater.php');
define('WP_GITHUB_FORCE_UPDATE', true);
if (is_admin()) { // note the use of is_admin() to double check that this is happening in the admin
$config = array(
'proper_folder_name' => 'github-updater',
'api_url' => 'https://api.github.com/repos/ninnypants/WordPress-GitHub-Theme-Updater',
'raw_url' => 'https://raw.github.com/ninnypants/WordPress-GitHub-Theme-Updater/master/style.css',
'github_url' => 'https://github.com/ninnypants/WordPress-GitHub-Theme-Updater',
'zip_url' => 'https://github.com/ninnypants/WordPress-GitHub-Theme-Updater/zipball/master',
'sslverify' => true,
'requires' => '3.0',
'tested' => '3.3',
'readme' => 'readme.txt'
);
new WPGitHubThemeUpdater($config);
}
}