Skip to content

Commit

Permalink
[themes] [tabs] [monetization] [add-ons] Only add tabs globally to mo…
Browse files Browse the repository at this point in the history
…netizing themes.
  • Loading branch information
fajardoleo committed Aug 31, 2017
1 parent 439dde4 commit dc49dfa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/class-freemius.php
Original file line number Diff line number Diff line change
Expand Up @@ -13413,6 +13413,11 @@ private function should_page_include_tabs()
return false;
}

if ( ! $this->has_paid_plan() && ! $this->has_addons() ) {
// Only add tabs to monetizing themes.
return false;
}

if ( ! $this->is_theme_settings_page() ) {
// Only add tabs if browsing one of the theme's setting pages.
return false;
Expand Down

0 comments on commit dc49dfa

Please sign in to comment.