-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub-updater.php
50 lines (43 loc) · 1.33 KB
/
github-updater.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
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
*
* @author OXO Solutions®
* @license GPL-2.0+
* @link https://github.com/oxosolutions/gitupdater
* @package gitupdater
*/
/**
* Plugin Name: GitHub Updater
* Plugin URI: https://github.com/oxosolutions/gitupdater
* Description: A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes.
* Version: 1.0.0.0
* Author: OXO Solutions®
* Author URI: https://oxosolutions.com/
* License: GNU General Public License v2
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Domain Path: /languages
* Text Domain: gitupdater
* GitHub Branch: master
* Network: true
* GitHub Plugin URI: https://github.com/oxosolutions/gitupdater
* Requires at least: 5.2
* Requires PHP: 5.6
*/
namespace Fragen\GitHub_Updater;
/*
* Exit if called directly.
* PHP version check and exit.
*/
if ( ! defined( 'WPINC' ) ) {
die;
}
// Load the Composer autoloader.
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require __DIR__ . '/vendor/autoload.php';
}
// Check for composer autoloader.
if ( ! class_exists( 'Fragen\GitHub_Updater\Bootstrap' ) ) {
require_once __DIR__ . '/src/GitHub_Updater/Bootstrap.php';
( new Bootstrap( __FILE__ ) )->deactivate_die();
}
( new Bootstrap( __FILE__ ) )->run();