Skip to content

Commit 5f3a9b5

Browse files
authored
Feature Hints: disable when plugins cannot be installed on sit… (#14108)
* Feature Hints: disable when plugins cannot be installed on site. When one cannot install plugins, we do not have to do anything with feature hints. * Comment new conditional See #14108 (comment)
1 parent 7be097d commit 5f3a9b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/plugin-search.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use Automattic\Jetpack\Constants;
34
use Automattic\Jetpack\Tracking;
45

56
/**
@@ -15,6 +16,8 @@
1516
Jetpack::is_active() &&
1617
/** This filter is documented in _inc/lib/admin-pages/class.jetpack-react-page.php */
1718
apply_filters( 'jetpack_show_promotions', true ) &&
19+
// Disable feature hints when plugins cannot be installed.
20+
! Constants::is_true( 'DISALLOW_FILE_MODS' ) &&
1821
jetpack_is_psh_active()
1922
) {
2023
Jetpack_Plugin_Search::init();

0 commit comments

Comments
 (0)