| @@ -139,8 +139,13 @@ | ||
| 139 | 139 | 'apiUrl' => rest_url('thinkrank/v1/'), |
| 140 | 140 | 'restNonce' => wp_create_nonce('wp_rest'), |
| 141 | 141 | 'connected' => (bool) $settings->get('google_account_connected', false), |
| 142 | 142 | 'isPro' => Plan_Config::is_pro(), |
| 143 | + // is_pro() is licence-aware, so it is false on an activated-but- | |
| 144 | + // unlicensed install and the bar upsold Pro to someone who already | |
| 145 | + // had it. The widget needs the installed-state separately. | |
| 146 | + 'isProInstalled' => defined('THINKRANK_PRO_VERSION'), | |
| 147 | + 'licenseUrl' => admin_url('admin.php?page=thinkrank-license'), | |
| 143 | 148 | // Pro upsell target for the teaser bar (filterable so campaigns can |
| 144 | 149 | // point it at a specific landing page). |
| 145 | 150 | 'upgradeUrl' => apply_filters( |
| 146 | 151 | 'thinkrank_dashboard_widget_upgrade_url', |