This repository was archived by the owner on Apr 12, 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
53 lines (47 loc) · 1.66 KB
/
github-updater.php
File metadata and controls
53 lines (47 loc) · 1.66 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
44
45
46
47
48
49
50
51
52
53
<?php
/**
* GitHub Updater
*
* @author Andy Fragen
* @license GPL-2.0+
* @link https://github.com/afragen/github-updater
* @package github-updater
*/
/**
* Plugin Name: GitHub Updater
* Plugin URI: https://github.com/afragen/github-updater
* Description: A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs. It also allows for remote installation of plugins or themes into WordPress.
* Version: 8.4.1
* 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
* Network: true
* GitHub Plugin URI: https://github.com/afragen/github-updater
* GitHub Languages: https://github.com/afragen/github-updater-translations
* Requires WP: 4.6
* Requires PHP: 5.6
*/
/*
* Exit if called directly.
* PHP version check and exit.
*/
if ( ! defined( 'WPINC' ) ) {
die;
}
if ( version_compare( '5.6.0', PHP_VERSION, '>=' ) ) {
echo '<div class="error notice is-dismissible"><p>';
printf(
/* translators: 1: minimum PHP version required, 2: Upgrade PHP URL */
wp_kses_post( __( 'GitHub Updater cannot run on PHP versions older than %1$s. <a href="%2$s">Learn about upgrading your PHP.</a>', 'github-updater' ) ),
'5.6.0',
esc_url( __( 'https://wordpress.org/support/upgrade-php/' ) )
);
echo '</p></div>';
return false;
}
define( 'GITHUB_UPDATER_FILE', __FILE__ );
define( 'GITHUB_UPDATER_DIR', __DIR__ );
// Setup plugin loading.
require_once __DIR__ . '/src/GitHub_Updater/Bootstrap.php';