Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Merge branch 'develop' into update/ecommerce-release-bump-1.3.34
Browse files Browse the repository at this point in the history
  • Loading branch information
aratidgr8 authored Jun 28, 2024
2 parents 1d0b5a3 + 5dcb74f commit 3b31f76
Show file tree
Hide file tree
Showing 8 changed files with 203 additions and 61 deletions.
6 changes: 3 additions & 3 deletions bluehost-wordpress-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
* Plugin URI: https://bluehost.com
* Update URI: https://github.com/bluehost/bluehost-wordpress-plugin
* Description: WordPress plugin that integrates a WordPress site with the Bluehost control panel, including performance, security, and update features.
* Version: 3.12.1
* Version: 3.12.2
* Requires at least: 6.0
* Requires PHP: 7.1
* Tested up to: 6.5.4
* Tested up to: 6.5.5
* Author: Bluehost
* Author URI: https://bluehost.com
* Text Domain: wp-plugin-bluehost
Expand All @@ -32,7 +32,7 @@
}

// Define constants
define( 'BLUEHOST_PLUGIN_VERSION', '3.12.1' );
define( 'BLUEHOST_PLUGIN_VERSION', '3.12.2' );
define( 'BLUEHOST_PLUGIN_FILE', __FILE__ );
define( 'BLUEHOST_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'BLUEHOST_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"newfold-labs/wp-module-ecommerce": "^1.3.35",
"newfold-labs/wp-module-facebook": "^1.0.9",
"newfold-labs/wp-module-features": "^1.4.2",
"newfold-labs/wp-module-global-ctb": "^1.0.12",
"newfold-labs/wp-module-global-ctb": "^1.0.13",
"newfold-labs/wp-module-help-center": "^2.0.0",
"newfold-labs/wp-module-loader": "^1.0.10",
"newfold-labs/wp-module-marketplace": "^2.3.0",
Expand Down
1 change: 1 addition & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions inc/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public function __construct() {

if ( isset( $_GET['page'] ) && strpos( filter_input( INPUT_GET, 'page', FILTER_UNSAFE_RAW ), 'bluehost' ) >= 0 ) { // phpcs:ignore
\add_action( 'admin_footer_text', array( __CLASS__, 'add_brand_to_admin_footer' ) );
/* Disable admin notices on App pages */
\add_action( 'admin_init', array( __CLASS__, 'disable_admin_notices' ) );
}
}

Expand Down Expand Up @@ -278,6 +280,16 @@ public static function actions( $actions ) {
);
}

/**
* Disable admin notices on App pages
*
* @return void
*/
public static function disable_admin_notices() {
remove_all_actions( 'admin_notices' );
remove_all_actions( 'all_admin_notices' );
}

/**
* Filter WordPress Admin Footer Text "Thank you for creating with..."
*
Expand Down
Loading

0 comments on commit 3b31f76

Please sign in to comment.