Skip to content

Commit

Permalink
Merge pull request #181 from Freemius/develop
Browse files Browse the repository at this point in the history
[themes] [tabs] [monetization] [add-ons] Only add tabs globally to mo…
  • Loading branch information
vovafeldman authored Aug 31, 2017
2 parents 8463dc2 + d67c0ba commit 1992b7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion start.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @var string
*/
$this_sdk_version = '1.2.2.8';
$this_sdk_version = '1.2.2.9';

#region SDK Selection Logic --------------------------------------------------------------------

Expand Down

0 comments on commit 1992b7f

Please sign in to comment.