Skip to content

Commit e58b1d4

Browse files
authored
Merge pull request #172 from 10up/fix/vip-duplicate-notices
Don’t render the plugin update notices on VIP as they’re duplicated
2 parents ed335dd + 0a7f6ac commit e58b1d4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

includes/classes/Plugins/Plugins.php

+12
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,18 @@ public function plugin_deactivation_warning() {
172172
* constant it is not possible to update any plugin.
173173
*/
174174
public function set_plugin_update_actions() {
175+
176+
/**
177+
* VIP has it's own update notification system that performs this same logic.
178+
*
179+
* As such, if we're on a VIP environment, we should not run this logic.
180+
*
181+
* See: https://github.com/Automattic/vip-go-mu-plugins/blob/develop/codebase-manager/plugins/plugins-manager.php#L65-L77
182+
*/
183+
if ( defined( 'VIP_GO_APP_ENVIRONMENT' ) ) {
184+
return;
185+
}
186+
175187
$plugins = get_site_transient( 'update_plugins' );
176188

177189
if ( isset( $plugins->response ) && is_array( $plugins->response ) ) {

0 commit comments

Comments
 (0)