diff --git a/inc/integrations.php b/inc/integrations.php index d07b1b07..a00db125 100644 --- a/inc/integrations.php +++ b/inc/integrations.php @@ -34,4 +34,4 @@ /** * Admin Dashboard logic. */ -require trailingslashit( get_template_directory() ) . 'inc/admin/admin.php'; // phpcs:ignore +require_once trailingslashit( get_template_directory() ) . 'inc/admin/admin.php'; // phpcs:ignore diff --git a/inc/required-plugins/class-tgm-plugin-activation.php b/inc/required-plugins/class-tgm-plugin-activation.php index 566b0216..55b37e59 100644 --- a/inc/required-plugins/class-tgm-plugin-activation.php +++ b/inc/required-plugins/class-tgm-plugin-activation.php @@ -8,7 +8,7 @@ * or theme author for support. * * @package TGM-Plugin-Activation - * @version 2.6.3 enhanced by Pixelgrade + * @version 2.6.4 for Boilerplate * @link http://tgmpluginactivation.com/ * @author Thomas Griffin, Gary Jones, Juliette Reinders Folmer * @copyright Copyright (c) 2011, Thomas Griffin @@ -55,7 +55,7 @@ class TGM_Plugin_Activation { * * @const string Version number. */ - const TGMPA_VERSION = '2.6.3'; // Version bump by Pixelgrade!!! + const TGMPA_VERSION = '2.6.4'; // Version bump by Pixelgrade!!! /** * Regular expression to test if a URL is a WP plugin repo URL. @@ -1023,6 +1023,12 @@ public function notices() { return; } + // Pixelgrade addition!!! + // Allow others to prevent notices. + if ( ! apply_filters( 'tgmpa_show_admin_notices', true ) ) { + return; + } + // Store for the plugin slugs by message type. $message = array(); @@ -1333,7 +1339,7 @@ public function register( $plugin ) { * @param string $plugin_slug */ public function deregister( $plugin_slug ) { - if ( empty( $plugin_slug ) || ! is_string( $plugin_slug ) || isset( $this->plugins[ $plugin_slug ] ) ) { + if ( empty( $plugin_slug ) || ! is_string( $plugin_slug ) || ! isset( $this->plugins[ $plugin_slug ] ) ) { return; }