forked from sybrew/The-SEO-Framework-Extension-Manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththe-seo-framework-extension-manager.php
99 lines (84 loc) · 2.97 KB
/
the-seo-framework-extension-manager.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
/**
* Plugin Name: The SEO Framework - Extension Manager
* Plugin URI: https://theseoframework.com/extension-manager/
* Description: Add more powerful SEO features to The SEO Framework. Right from your WordPress dashboard.
* Version: 2.6.0-dev-2
* Author: The SEO Framework Team
* Author URI: https://theseoframework.com/
* License: GPLv3
* Text Domain: the-seo-framework-extension-manager
* Domain Path: /language
* Requires at least: 5.5
* Requires PHP: 7.2.0
*
* @package TSF_Extension_Manager\Bootstrap
*/
defined( 'ABSPATH' ) or die;
/**
* The SEO Framework - Extension Manager plugin
* Copyright (C) 2016-2022 Sybre Waaijer, CyberWire (https://cyberwire.nl/)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as published
* by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @NOTE This file MUST be written according to WordPress's minimum PHP requirements.
* Which is PHP 5.2.
* When we only support WordPress 5.2+, it'll be PHP 5.6.
* When we only support WordPress 5.5?+, it'll be PHP 7.1.
*/
/**
* The plugin version. Always 3 point.
*
* @since 1.0.0
*/
define( 'TSF_EXTENSION_MANAGER_VERSION', '2.5.3' );
/**
* The plugin's database version.
*
* @since 1.5.0
*/
define( 'TSF_EXTENSION_MANAGER_DB_VERSION', '2500' );
/**
* The plugin file, absolute unix path.
*
* @since 1.0.0
*/
define( 'TSF_EXTENSION_MANAGER_PLUGIN_BASE_FILE', __FILE__ );
/**
* The plugin basename relative to the plugins directory.
*
* @since 1.0.0
*/
define( 'TSF_EXTENSION_MANAGER_PLUGIN_BASENAME', plugin_basename( TSF_EXTENSION_MANAGER_PLUGIN_BASE_FILE ) );
/**
* The plugin's bootstrap folder location.
*
* @since 1.5.0
*/
define( 'TSF_EXTENSION_MANAGER_BOOTSTRAP_PATH', dirname( TSF_EXTENSION_MANAGER_PLUGIN_BASE_FILE ) . DIRECTORY_SEPARATOR . 'bootstrap' . DIRECTORY_SEPARATOR );
// Defines environental constants.
require TSF_EXTENSION_MANAGER_BOOTSTRAP_PATH . 'define.php';
// Load plugin API file.
require TSF_EXTENSION_MANAGER_DIR_PATH_FUNCTION . 'api.php';
// Load internal functions file.
require TSF_EXTENSION_MANAGER_DIR_PATH_FUNCTION . 'internal.php';
// Prepare plugin upgrader before the plugin loads.
if ( tsf_extension_manager_db_version() < TSF_EXTENSION_MANAGER_DB_VERSION )
require TSF_EXTENSION_MANAGER_BOOTSTRAP_PATH . 'upgrade.php';
if ( is_admin() || wp_doing_cron() )
require TSF_EXTENSION_MANAGER_BOOTSTRAP_PATH . 'update.php';
if ( is_admin() )
require TSF_EXTENSION_MANAGER_BOOTSTRAP_PATH . 'install.php';
// Load plugin files.
require TSF_EXTENSION_MANAGER_BOOTSTRAP_PATH . 'load.php';