| @@ -5,11 +5,11 @@ | ||
| 5 | 5 | Description: Forumax is forum software for community discussions with public and private replies, private chats, voting, solved topics and more. |
| 6 | 6 | Author: spider-themes |
| 7 | 7 | Author URI: https://forumax.spider-themes.net/ |
| 8 | 8 | Text Domain: forumax |
| 9 | -Version: 2.4.3 | |
| 9 | +Version: 2.5.0 | |
| 10 | 10 | Requires at least: 5.0 |
| 11 | -Tested up to: 7.0.2 | |
| 11 | +Tested up to: 7.1.2 | |
| 12 | 12 | Requires PHP: 7.4 |
| 13 | 13 | License: GPLv3 or later |
| 14 | 14 | License URI: https://www.gnu.org/licenses/gpl-3.0.html |
| 15 | 15 | */ |
| @@ -71,8 +71,14 @@ | ||
| 71 | 71 | |
| 72 | 72 | // Add filter to hide the Freemius badge from the plugin page. |
| 73 | 73 | bc_fs()->add_filter( 'hide_freemius_powered_by', '__return_true' ); |
| 74 | 74 | |
| 75 | + // Disclose that opting in also pre-fills the in-plugin support chat | |
| 76 | + // (see the Support Assistant class). The on-update screen falls back to this filter. | |
| 77 | + bc_fs()->add_filter( 'connect_message', function ( $message ) { | |
| 78 | + return $message . '<br><br>' . esc_html__( 'Opting in also pre-fills your name and email in the Forumax support chat, so you can get help without typing them. They are only sent to our helpdesk when you open the chat.', 'forumax' ); | |
| 79 | + } ); | |
| 80 | + | |
| 75 | 81 | // Keep the free and premium versions from auto-deactivating each other. |
| 76 | 82 | bc_fs()->add_filter( 'deactivate_on_activation', '__return_false' ); |
| 77 | 83 | |
| 78 | 84 | // Suppress Freemius update row modification to avoid double notices or licensing nags on the plugins page. |
| @@ -98,9 +104,9 @@ | ||
| 98 | 104 | * Plugin's heart |
| 99 | 105 | */ |
| 100 | 106 | final class Forumax { |
| 101 | 107 | |
| 102 | - const VERSION = '2.4.3'; | |
| 108 | + const VERSION = '2.5.0'; | |
| 103 | 109 | |
| 104 | 110 | /** |
| 105 | 111 | * Class constructor. |
| 106 | 112 | */ |
| @@ -177,8 +183,14 @@ | ||
| 177 | 183 | |
| 178 | 184 | // Docy Core compatibility layer (fixes Forums widget class not found error) |
| 179 | 185 | require_once __DIR__ . '/includes/docy-core-compatibility.php'; |
| 180 | 186 | |
| 187 | + // Keep single-topic theme-compat from loading every topic/reply. | |
| 188 | + require_once __DIR__ . '/includes/topic-render-guard.php'; | |
| 189 | + | |
| 190 | + // Stop EazyDocs is_super_admin() from recursing during author cap checks. | |
| 191 | + require_once __DIR__ . '/includes/eazydocs-compatibility.php'; | |
| 192 | + | |
| 181 | 193 | require_once __DIR__ . '/includes/functions.php'; |
| 182 | 194 | |
| 183 | 195 | require_once __DIR__ . '/includes/template-functions.php'; |
| 184 | 196 | require_once __DIR__ . '/includes/bbpress-config.php'; |
| @@ -440,8 +452,12 @@ | ||
| 440 | 452 | |
| 441 | 453 | if ( is_admin() ) { |
| 442 | 454 | new Admin(); |
| 443 | 455 | new admin\Admin_Assets(); |
| 456 | + | |
| 457 | + // Helpdesk docs assistant on Forumax admin pages. | |
| 458 | + require_once __DIR__ . '/includes/admin/class-support-assistant.php'; | |
| 459 | + \Forumax_Support_Assistant::get_instance(); | |
| 444 | 460 | |
| 445 | 461 | // Check for widget migration on every admin load (once per session) |
| 446 | 462 | // This catches cases where plugins were updated in wrong order |
| 447 | 463 | add_action( 'admin_init', array( $this, 'check_widget_migration' ), 5 ); |