Changeset 3334234
- Timestamp:
- 07/25/2025 03:19:13 PM (8 months ago)
- Location:
- biblio-dispatch/trunk
- Files:
-
- 2 edited
-
bibliodispatch-plugin.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
biblio-dispatch/trunk/bibliodispatch-plugin.php
r3332977 r3334234 3 3 Plugin Name: Print Management with Biblio Dispatch 4 4 Description: The Print Management with Biblio Dispatch plugin streamlines print services by enabling user registration and login.With seamless integration into your WordPress site, it enhances order management and improves efficiency for your print service operations. 5 Version: 1.2. 65 Version: 1.2.7 6 6 License: GPL2 7 7 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 107 107 } 108 108 } 109 110 if (isset($status['date_expiry'])) { 109 110 $registeredDomain = ''; 111 if(isset($status, $status['registered_domains']) && !empty($status['registered_domains'])) { 112 $registeredDomain = $status['registered_domains'][0]['registered_domain']; 113 } 114 115 if (isset($status['date_expiry']) && $registeredDomain==site_url()) { 111 116 $date_expiry = strtotime($status['date_expiry']); 112 117 $current_time = time(); … … 125 130 return $license_status; 126 131 } 127 if(isset($status['status']) && $status['status'] === 'active' )132 if(isset($status['status']) && $status['status'] === 'active' && $registeredDomain==site_url()) 128 133 { 129 134 return 'activated'; … … 264 269 //--------Prompt to user for configuration of plugin------- 265 270 add_action('admin_notices', 'check_plugin_configuration_prompt'); 266 267 271 function check_plugin_configuration_prompt() { 268 272 $user_id = get_current_user_id(); … … 271 275 $store_name_option_name = 'wc_api_store_name_' . $user_id; 272 276 $site_url = 'wc_api_site_url_' . $user_id; 277 $licenseStatus = get_option('biblio_dispatch_license_status'); 273 278 // Fetch the saved options (replace 'plugin_option_key' with the actual option keys) 274 279 $consumer_key = get_option($consumer_key_option_name); … … 283 288 } 284 289 // If any configuration is missing, display a notice 285 if (!$consumer_key || !$consumer_secret || !$store_name || !$site_url) { 286 echo '<div class="notice notice-warning is-dismissible">'; 287 echo '<p><strong>Biblio Dispatch Plugin is activated but not fully configured. Please configure the plugin</p>'; 288 echo '</div>'; 290 if(isset($licenseStatus) && $licenseStatus!="expired") { 291 if (!$consumer_key || !$consumer_secret || !$store_name || !$site_url) { 292 echo '<div class="notice notice-warning is-dismissible">'; 293 echo '<p><strong>Biblio Dispatch Plugin is activated but not fully configured. Please configure the plugin</p>'; 294 echo '</div>'; 295 } 289 296 } 290 297 } -
biblio-dispatch/trunk/readme.txt
r3332977 r3334234 5 5 Requires at least: 6.3 6 6 Tested up to: 6.6 7 Stable tag: 1.2. 67 Stable tag: 1.2.7 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 107 107 Changes in Site Url 108 108 109 = 1.2.7 = 110 Authenticating license expiry with domains 111 109 112 == A brief Markdown Example == 110 113
Note: See TracChangeset
for help on using the changeset viewer.