Changeset 3240751
- Timestamp:
- 02/14/2025 06:13:17 PM (14 months ago)
- Location:
- ilachat/tags/1.0.3/src/Admin
- Files:
-
- 2 edited
-
Admin.php (modified) (1 diff)
-
Connection.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ilachat/tags/1.0.3/src/Admin/Admin.php
r3240739 r3240751 22 22 add_action('admin_enqueue_scripts', [$this, 'enqueue_scripts']); 23 23 add_filter('plugin_action_links_' . ILACHAT_BASENAME, [$this, 'add_settings_link']); 24 add_action('upgrader_process_complete', function ($upgrader_object, $options) { 25 $plugin_slug = 'ilachat/ilachat.php'; 26 27 if ($options['action'] === 'update' && $options['type'] === 'plugin') { 28 if (!empty($options['plugins']) && in_array($plugin_slug, $options['plugins'])) { 29 delete_option('ilachat_widget_code'); 30 } 31 } 32 }, 10, 2); 24 33 } 25 34 -
ilachat/tags/1.0.3/src/Admin/Connection.php
r3240739 r3240751 272 272 $widget_code = get_option('ilachat_widget_code', ''); 273 273 274 if ((time() - $last_updated) > 86400 ) {274 if ((time() - $last_updated) > 86400 || empty($widget_code)) { 275 275 self::set_bot_details(); 276 276 $widget_code = get_option('ilachat_widget_code', '');
Note: See TracChangeset
for help on using the changeset viewer.