Skip to content

Commit

Permalink
Release/1.2.4 (#25)
Browse files Browse the repository at this point in the history
* version bump

* update plugin name

* update tested up to version

* update date

* update plugins compat check
  • Loading branch information
circlecube authored Feb 8, 2023
1 parent 56d3789 commit fe36dc8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "wp-plugin-web",
"description": "WordPress plugin that integrates your WordPress site with the Web.com control panel, including performance, security, and update features.",
"license": "GPL-2.0-or-later",
"version": "1.2.3",
"version": "1.2.4",
"private": true,
"author": {
"name": "Evan Mullins",
Expand Down
25 changes: 15 additions & 10 deletions wp-plugin-web.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
*
* @package WPPluginWeb
* @author Newfold Digital
* @copyright Copyright 2022 by Newfold Digital - All rights reserved.
* @copyright Copyright 2023 by Newfold Digital - All rights reserved.
* @license GPL-2.0-or-later
*
* @wordpress-plugin
* Plugin Name: Web.com
* Plugin Name: The Web.com Plugin
* Plugin URI: https://web.com
* Description: WordPress plugin that integrates a WordPress site with the Web.com control panel, including performance, security, and update features.
* Version: 1.2.3
* Version: 1.2.4
* Requires at least: 4.7
* Requires PHP: 5.6
* Tested up to: 5.9
* Tested up to: 6.1.1
* Author: Web.com
* Author URI: https://web.com
* Text Domain: wp-plugin-web
Expand All @@ -31,7 +31,7 @@
}

// Define constants
define( 'WEB_PLUGIN_VERSION', '1.2.3' );
define( 'WEB_PLUGIN_VERSION', '1.2.4' );
define( 'WEB_PLUGIN_FILE', __FILE__ );
define( 'WEB_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'WEB_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
Expand All @@ -57,13 +57,18 @@

// Check NFD plugin incompatibilities
require_once WEB_PLUGIN_DIR . '/inc/plugin-nfd-compat-check.php';
$nfd_plugins_check = new NFD_Plugin_Compat_Check( WEB_PLUGIN_FILE );
$nfd_plugins_check = new NFD_Plugin_Compat_Check( WEB_PLUGIN_FILE );
// Defer to Incompatible plugin, self-deactivate
$nfd_plugins_check->incompatible_plugins = array(
'The Bluehost Plugin' => 'bluehost-wordpress-plugin/bluehost-wordpress-plugin.php',
);
// Deactivate legacy plugin
$nfd_plugins_check->legacy_plugins = array(
'Bluehost' => 'bluehost-wordpress-plugin/bluehost-wordpress-plugin.php',
'MOJO Marketplace' => 'mojo-marketplace-wp-plugin/mojo-marketplace.php',
'HostGator' => 'wp-plugin-hostgator/wp-plugin-hostgator.php',
'The MOJO Marketplace' => 'mojo-marketplace-wp-plugin/mojo-marketplace.php',
'The MOJO Plugin' => 'wp-plugin-mojo/wp-plugin-mojo.php',
'The HostGator Plugin' => 'wp-plugin-hostgator/wp-plugin-hostgator.php',
);
$pass_nfd_check = $nfd_plugins_check->check_plugin_requirements();
$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', '>=' ) ) {
Expand Down

0 comments on commit fe36dc8

Please sign in to comment.