Skip to content

Commit bc5e168

Browse files
committed
Fixed freemius free file creation
1 parent 9978824 commit bc5e168

50 files changed

Lines changed: 1 addition & 16 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

includes/class-main.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
if ( ! defined( 'WPINC' ) ) {
1111
exit;
1212
}
13-
1413
/**
1514
* Main plugin class.
1615
*
@@ -90,7 +89,6 @@ public static function get_instance(): self {
9089
self::$instance = new self();
9190
self::$instance->init();
9291
}
93-
9492
return self::$instance;
9593
}
9694

@@ -114,18 +112,8 @@ private function init(): void {
114112
$this->styles = new Frontend\Styles_Handler();
115113
$this->shortcodes = new Frontend\Shortcodes();
116114
$this->blocks = new Frontend\Blocks\Blocks();
117-
118115
// Load all hooks.
119116
new Hook_Loader();
120-
121-
// Initialize pro features.
122-
if ( crp_freemius()->is__premium_only() ) {
123-
if ( crp_freemius()->can_use_premium_code() ) {
124-
$this->pro = new Pro\Pro();
125-
}
126-
Pro\Pro::free_hooks();
127-
}
128-
129117
// Initialize admin.
130118
if ( is_admin() ) {
131119
$this->admin = new Admin\Admin();

load-freemius.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function crp_freemius() {
2929
'premium_slug' => 'contextual-related-posts-pro',
3030
'type' => 'plugin',
3131
'public_key' => 'pk_4aec305b9c97637276da2e55b723f',
32-
'is_premium' => true,
32+
'is_premium' => false,
3333
'premium_suffix' => 'Pro',
3434
'has_addons' => false,
3535
'has_paid_plans' => true,
@@ -65,9 +65,6 @@ function crp_freemius_get_plugin_icon() {
6565
*/
6666
function crp_freemius_uninstall() {
6767
require_once __DIR__ . '/uninstaller.php';
68-
if ( crp_freemius()->can_use_premium_code__premium_only() ) {
69-
\WebberZone\Contextual_Related_Posts\Pro\Pro::uninstall_pro();
70-
}
7168
}
7269

7370
// Init Freemius.

vendor/freemius/LICENSE.txt

100755100644
File mode changed.

vendor/freemius/assets/css/admin/account.css

100755100644
File mode changed.

vendor/freemius/assets/css/admin/add-ons.css

100755100644
File mode changed.

vendor/freemius/assets/css/admin/common.css

100755100644
File mode changed.

vendor/freemius/assets/css/admin/connect.css

100755100644
File mode changed.

vendor/freemius/assets/js/nojquery.ba-postmessage.js

100755100644
File mode changed.

vendor/freemius/assets/js/postmessage.js

100755100644
File mode changed.

vendor/freemius/includes/class-freemius-abstract.php

100755100644
File mode changed.

0 commit comments

Comments
 (0)