Skip to content

Commit

Permalink
Merge pull request #19241 from wordpress-mobile/issue/19240-plugin-me…
Browse files Browse the repository at this point in the history
…nu-item-shown

My Site Menu: Plugins item - Update visibility rule
  • Loading branch information
AjeshRPai authored Sep 26, 2023
2 parents 746a5cb + 05e9a13 commit d7a5a32
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ public class PluginUtils {

public static boolean isPluginFeatureAvailable(SiteModel site) {
if (site.isUsingWpComRestApi() && site.isJetpackConnected()) {
return SiteUtils.checkMinimalJetpackVersion(site, "5.6");
} else if (site.isSelfHostedAdmin()) {
return SiteUtils.checkMinimalJetpackVersion(site, "5.6") && site.getHasCapabilityManageOptions();
}

if (site.isSelfHostedAdmin()) {
return SiteUtils.checkMinimalWordPressVersion(site, "5.5");
}

Expand Down

0 comments on commit d7a5a32

Please sign in to comment.