This repository was archived by the owner on Jan 15, 2024. It is now read-only.
forked from afragen/git-updater
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub-updater.php
More file actions
43 lines (38 loc) · 1.54 KB
/
github-updater.php
File metadata and controls
43 lines (38 loc) · 1.54 KB
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
40
41
42
43
<?php
/**
* GitHub Updater
*
* @package GitHub_Updater
* @author Andy Fragen
* @license GPL-2.0+
* @link https://github.com/afragen/github-updater
*/
/*
Plugin Name: GitHub Updater
Plugin URI: https://github.com/afragen/github-updater
Description: A plugin to automatically update GitHub or Bitbucket hosted plugins and themes into WordPress. Plugin class based upon <a href="https://github.com/codepress/github-plugin-updater">codepress/github-plugin-updater</a>. Theme class based upon <a href="https://github.com/WordPress-Phoenix/whitelabel-framework">Whitelabel Framework</a> modifications.
Version: 2.9.0.10
Author: Andy Fragen
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Domain Path: /languages
Text Domain: github-updater
GitHub Plugin URI: https://github.com/UsabilityDynamics/wp-github-updater
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
// Load main class
if ( ! class_exists( 'GitHub_Updater' ) ) {
require 'includes/class-github-updater.php';
load_plugin_textdomain( 'github-updater', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
}
// Instantiate class GitHub_Updater
new GitHub_Updater;
/**
* Calls GitHub_Updater::init() in init hook so other remote upgrader apps like
* InfiniteWP, ManageWP, MainWP, and iThemes Sync will load and use all
* of GitHub_Updater's methods, especially renaming.
*/
add_action( 'init', array( 'GitHub_Updater', 'init' ) );