This repository has been archived by the owner on Aug 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
mojo-marketplace.php
69 lines (60 loc) · 2.38 KB
/
mojo-marketplace.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
<?php
/**
* MOJO Marketplace Plugin
*
* @package MojoMarketplace
* @author Newfold Digital
* @copyright Copyright 2023 by Newfold Digital - All rights reserved.
* @license GPL-2.0-or-later
*
* @wordpress-plugin
* Plugin Name: The MOJO Marketplace
* Plugin URI: https://mojomarketplace.com
* Update URI: https://github.com/bluehost/mojo-marketplace-wp-plugin/
* Description: This plugin adds shortcodes, widgets, and themes to your WordPress site.
* Version: 1.8.0
* Tested up to: 6.6.1
* Requires at least: 5.8
* Requires PHP: 5.6
* Author: Bluehost
* Author URI: https://bluehost.com
* Text Domain: mojo-marketplace-wp-plugin
* Domain Path: /languages
* License: GPL 2.0 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
// Do not access file directly!
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'MM_VERSION', '1.8.0' );
define( 'MM_FILE', __FILE__ );
define( 'MM_BASE_DIR', plugin_dir_path( __FILE__ ) );
define( 'MM_BASE_URL', plugin_dir_url( __FILE__ ) );
if ( ! defined( 'NFD_HIIVE_URL' ) ) {
define( 'NFD_HIIVE_URL', 'https://hiive.cloud/api' );
}
global $pagenow;
if ( 'plugins.php' === $pagenow ) {
require dirname( __FILE__ ) . '/inc/plugin-php-compat-check.php';
$plugin_check = new Mojo_Plugin_PHP_Compat_Check( __FILE__ );
$plugin_check->min_php_version = '5.3';
$plugin_check->min_wp_version = '4.7';
$plugin_check->check_plugin_requirements();
}
// Check NFD plugins
require dirname( __FILE__ ) . '/inc/plugin-nfd-compat-check.php';
$nfd_plugins_check = new NFD_Plugin_Compat_Check( MM_FILE );
// Defer to Incompatible plugin, self-deactivate
$nfd_plugins_check->incompatible_plugins = array(
'The Bluehost Plugin' => 'bluehost-wordpress-plugin/bluehost-wordpress-plugin.php',
'The HostGator Plugin' => 'wp-plugin-hostgator/wp-plugin-hostgator.php',
'The Web.com Plugin' => 'wp-plugin-web/wp-plugin-web.php',
'The MOJO Plugin' => 'wp-plugin-mojo/wp-plugin-mojo.php', // new mojo
);
// Save val to abort loading if incompatabilities are found
$pass_nfd_check = $nfd_plugins_check->check_plugin_requirements();
// Check PHP version before initializing to prevent errors if plugin is incompatible.
if ( $pass_nfd_check && version_compare( PHP_VERSION, '5.3', '>=' ) ) {
require dirname( __FILE__ ) . '/bootstrap.php';
}