PluginProbe
Easy Invoice – Invoice Generator, PDF Quotes & Payments / 2.4.1
Easy Invoice – Invoice Generator, PDF Quotes & Payments v2.4.1
2.4.0 2.4.1 2.3.8 2.3.7 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.2.0 2.1.21 2.1.20 2.1.19 2.1.18 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.2 All 57 releases
← All changes | includes/Helpers/GeneralHelper.php +7 -1 2.2.02.4.1 View file →
@@ -1,6 +1,9 @@
1 1 <?php
2 2
3 +if ( ! defined( 'ABSPATH' ) ) {
4 + exit;
5 +}
3 6 // General plugin logic, feature toggles, repository/service getters, plugin state, etc.
4 7
5 8 function easy_invoice_should_show_quote_adjust_field(): bool {
6 9 return \EasyInvoice\Controllers\SettingsController::shouldShowQuoteAdjustField();
@@ -108,9 +111,12 @@
108 111 * @since 1.0.0
109 112 * @return bool
110 113 */
111 114 function easy_invoice_has_pro(): bool {
112 - return class_exists('EasyInvoicePro');
115 + // The main class is hoisted even when Pro's file bails out early (it
116 + // refuses to run against a free plugin older than it needs), so also
117 + // require a class that only its autoloader provides.
118 + return class_exists('EasyInvoicePro') && class_exists('\\EasyInvoicePro\\Updater\\License');
113 119 }
114 120
115 121 /**
116 122 * Convert various boolean values to a consistent boolean