Changeset 3481583
- Timestamp:
- 03/13/2026 12:05:48 AM (3 weeks ago)
- Location:
- ticket-status-sync-for-fluentsupport-to-mainwp
- Files:
-
- 14 added
- 3 edited
-
tags/1.2.7 (added)
-
tags/1.2.7/class (added)
-
tags/1.2.7/class/class-ticket-status-sync-for-fluentsupport-to-mainwp-admin.php (added)
-
tags/1.2.7/class/class-ticket-status-sync-for-fluentsupport-to-mainwp-db.php (added)
-
tags/1.2.7/class/class-ticket-status-sync-for-fluentsupport-to-mainwp-overview.php (added)
-
tags/1.2.7/class/class-ticket-status-sync-for-fluentsupport-to-mainwp-utility.php (added)
-
tags/1.2.7/class/class-ticket-status-sync-for-fluentsupport-to-mainwp-widget.php (added)
-
tags/1.2.7/css (added)
-
tags/1.2.7/css/ticket-status-sync-for-fluentsupport-to-mainwp.css (added)
-
tags/1.2.7/js (added)
-
tags/1.2.7/js/ticket-status-sync-for-fluentsupport-to-mainwp.js (added)
-
tags/1.2.7/readme.txt (added)
-
tags/1.2.7/sflwa-notice-handler.php (added)
-
tags/1.2.7/ticket-status-sync-for-fluentsupport-to-mainwp.php (added)
-
trunk/class/class-ticket-status-sync-for-fluentsupport-to-mainwp-admin.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/ticket-status-sync-for-fluentsupport-to-mainwp.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ticket-status-sync-for-fluentsupport-to-mainwp/trunk/class/class-ticket-status-sync-for-fluentsupport-to-mainwp-admin.php
r3458357 r3481583 28 28 } 29 29 30 /**31 * AJAX Fetch Logic (Stays the same, updates log option)32 */33 30 public function ajax_fetch_tickets() { 34 31 check_ajax_referer( 'ticket-status-sync-for-fluentsupport-to-mainwp-nonce', 'security' ); … … 88 85 } 89 86 90 /**91 * RENDERS NEW SYNC LOG TAB92 */93 87 public function render_log_tab() { 94 88 $log = get_option( 'mainwp_fluentsupport_sync_log', 'No log data yet.' ); … … 189 183 <?php 190 184 } 185 186 /** 187 * Widgets screen options. 188 * 189 * @param array $input Input. 190 * 191 * @return array $input Input. 192 */ 193 public function widgets_screen_options( $input ) { 194 $input['advanced-fluentsupport-tickets-widget'] = __( 'FluentSupport Tickets', 'ticket-status-sync-for-fluentsupport-to-mainwp' ); 195 return $input; 196 } 191 197 } -
ticket-status-sync-for-fluentsupport-to-mainwp/trunk/readme.txt
r3475076 r3481583 3 3 Plugin URI: https://github.com/sflwa/fs-mainwp 4 4 Description: Integrates FluentSupport ticket data from a single "Support Site" into the MainWP Dashboard. 5 Version: 1.2. 65 Version: 1.2.7 6 6 Author: South Florida Web Advisors 7 7 Author URI: https://sflwa.net … … 9 9 Requires PHP: 7.4 10 10 Tested up to: 6.9 11 Stable tag: 1.2. 611 Stable tag: 1.2.7 12 12 License: GPLv2 or later 13 13 … … 48 48 == Changelog == 49 49 50 = 1.2.7 == 51 * Added / Fixed - Checkbox for Page setup to hide widget 52 50 53 = 1.2.6 = 51 54 * Added Sort & Order by to Ticket Query to match requirement from FluentSupport -
ticket-status-sync-for-fluentsupport-to-mainwp/trunk/ticket-status-sync-for-fluentsupport-to-mainwp.php
r3475076 r3481583 4 4 * Plugin URI: https://github.com/sflwa/ticket-status-sync-for-fluentsupport-to-mainwp 5 5 * Description: Integrates FluentSupport ticket data from a single "Support Site" into the MainWP Dashboard. 6 * Version: 1.2. 66 * Version: 1.2.7 7 7 * Author: South Florida Web Advisors 8 8 * Author URI: https://sflwa.net … … 39 39 40 40 protected $plugin_handle = 'ticket-status-sync-for-fluentsupport-to-mainwp'; 41 protected $software_version = '1.2. 5';41 protected $software_version = '1.2.9'; 42 42 43 43 public function __construct() { … … 52 52 add_action( 'mainwp_fluentsupport_sync_tickets_cron', array( $this, 'mainwp_fluentsupport_sync_tickets_cron' ) ); 53 53 54 // NEW: Auto-refresh schedule on plugin update55 54 add_action( 'admin_init', array( $this, 'check_version_and_refresh_cron' ) ); 56 55 … … 71 70 } 72 71 73 /**74 * Ensures the cron is refreshed automatically when users update the plugin.75 */76 72 public function check_version_and_refresh_cron() { 77 73 $db_version = get_option( 'mainwp_fluentsupport_version', '1.0.0' ); 78 74 if ( version_compare( $db_version, $this->software_version, '<' ) ) { 79 $this->activate(); // Re-runs the cron scheduling logic75 $this->activate(); 80 76 update_option( 'mainwp_fluentsupport_version', $this->software_version ); 81 77 } … … 114 110 } 115 111 add_filter( 'mainwp_getmetaboxes', array( $this, 'hook_get_metaboxes' ) ); 112 add_filter( 'mainwp_widgets_screen_options', array( MainWP_FluentSupport_Admin::get_instance(), 'widgets_screen_options' ), 10, 1 ); 113 116 114 MainWP_FluentSupport_Admin::get_instance(); 117 115 MainWP_FluentSupport_Overview::get_instance(); … … 133 131 if ( ! empty( $url ) && ! empty( $user ) && ! empty( $pass ) ) { 134 132 $result = MainWP_FluentSupport_Utility::api_sync_tickets( $url, $user, $pass ); 135 136 // LOG THE STATUS FOR DEBUGGING137 133 $status = $result['success'] ? 'Success: ' . $result['synced'] . ' tickets.' : 'Error: ' . $result['error']; 138 134 update_option( 'mainwp_fluentsupport_sync_log', current_time( 'mysql' ) . ' - ' . $status ); … … 156 152 157 153 public function hook_get_metaboxes( $metaboxes ) { 154 if ( ! is_array( $metaboxes ) ) { 155 $metaboxes = array(); 156 } 157 158 158 $metaboxes[] = array( 159 159 'id' => 'fluentsupport-tickets-widget',
Note: See TracChangeset
for help on using the changeset viewer.