Changeset 3390233
- Timestamp:
- 11/05/2025 08:13:56 AM (4 months ago)
- Location:
- site-suggest
- Files:
-
- 32 added
- 5 edited
-
tags/1.3.8 (added)
-
tags/1.3.8/app (added)
-
tags/1.3.8/app/ajax-controller.php (added)
-
tags/1.3.8/app/cron-controller.php (added)
-
tags/1.3.8/app/info-controller.php (added)
-
tags/1.3.8/app/main-controller.php (added)
-
tags/1.3.8/assets (added)
-
tags/1.3.8/assets/css (added)
-
tags/1.3.8/assets/css/style.css (added)
-
tags/1.3.8/assets/js (added)
-
tags/1.3.8/assets/js/script.js (added)
-
tags/1.3.8/index.php (added)
-
tags/1.3.8/license.txt (added)
-
tags/1.3.8/readme.txt (added)
-
tags/1.3.8/site-suggest.php (added)
-
tags/1.3.8/vendor (added)
-
tags/1.3.8/vendor/DetectLanguage (added)
-
tags/1.3.8/vendor/DetectLanguage/Client.php (added)
-
tags/1.3.8/vendor/DetectLanguage/DetectLanguage.php (added)
-
tags/1.3.8/vendor/DetectLanguage/Error.php (added)
-
tags/1.3.8/vendor/detectlanguage.php (added)
-
tags/1.3.8/views (added)
-
tags/1.3.8/views/admin (added)
-
tags/1.3.8/views/admin-parts (added)
-
tags/1.3.8/views/admin-parts/admin-settings-fields.php (added)
-
tags/1.3.8/views/admin-parts/admin-site-info.php (added)
-
tags/1.3.8/views/admin/admin-robots-txt.php (added)
-
tags/1.3.8/views/admin/admin-server.php (added)
-
tags/1.3.8/views/admin/admin-settings.php (added)
-
tags/1.3.8/views/admin/admin-tool-content.php (added)
-
tags/1.3.8/views/admin/stsgt-log-single.php (added)
-
tags/1.3.8/views/admin/stsgt-log.php (added)
-
trunk/app/ajax-controller.php (modified) (4 diffs)
-
trunk/app/info-controller.php (modified) (6 diffs)
-
trunk/app/main-controller.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/site-suggest.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
site-suggest/trunk/app/ajax-controller.php
r3387629 r3390233 67 67 } 68 68 69 public function send_diagnostic_data() 70 { 71 $stsgt_settings_data = get_option('stsgt_settings_data', []); 72 if (isset($stsgt_settings_data['stsgt_api_share_diagnostic_data'])) { 73 $response = wp_remote_post('https://plugin.sitesuggest.io/wp-json/stsgt_host/v1/stsgt_diagnos', array( 74 'body' => array( 75 'client_url' => home_url(), 76 'data' => esc_html(wp_json_encode(get_option('stsgt_site_speed_data', []))), 77 'last_updated' => time() 78 ) 79 )); 80 81 if (!is_wp_error($response)) { 82 $body = wp_remote_retrieve_body($response); 83 // error_log(print_r($body, true)); 84 } else { 85 // error_log($response->get_error_message()); 86 } 87 } 88 } 89 69 90 public function stsgt_dismiss_admin_notice_clbk() 70 91 { … … 576 597 return $stsgtp_MainController->check_broken_links($html_content, $post_id); 577 598 } else { 578 return ["Pro Version Required!"];579 599 function link_prefix_exception($string, $substrings) 580 600 { … … 1087 1107 } 1088 1108 1109 $this->send_diagnostic_data(); 1089 1110 wp_send_json($resp); 1090 1111 } else { … … 1367 1388 1368 1389 $is_cron_obs = in_array($check_name, $cron_observers) ? 'yes' : 'no'; 1390 $this->send_diagnostic_data(); 1369 1391 wp_send_json(array( 1370 1392 'status' => 200, -
site-suggest/trunk/app/info-controller.php
r3387629 r3390233 535 535 { 536 536 $current_limit = ini_get('memory_limit'); 537 $current_limit = defined('WP_MEMORY_LIMIT') ? WP_MEMORY_LIMIT : $current_limit;538 $max_current_limit = defined('WP_MAX_MEMORY_LIMIT') ? WP_MAX_MEMORY_LIMIT : $current_limit;537 $current_limit = intval(defined('WP_MEMORY_LIMIT') ? WP_MEMORY_LIMIT : $current_limit); 538 $max_current_limit = intval(defined('WP_MAX_MEMORY_LIMIT') ? WP_MAX_MEMORY_LIMIT : $current_limit); 539 539 $real_peak_used_memory = get_option('stsgt_peak_memory_limit', 0); 540 540 … … 551 551 } 552 552 $sgst_limit .= '<br>WP_MAX_MEMORY_LIMIT (' . $max_current_limit . ')'; 553 553 554 if($max_current_limit < $recommended){ 554 555 $sgst_limit .= ' - Suggested memory limit ' . $recommended . 'M.'; … … 1670 1671 1671 1672 if (empty($resp_arr)) { 1672 $remote_data = wp_remote_get('https://c.sitesuggest.io/?url=' . get_site_url() );1673 $remote_data = wp_remote_get('https://c.sitesuggest.io/?url=' . get_site_url().'?perfmatters=false&ao_noptimize=1&nowprocket'); 1673 1674 if (!is_wp_error($remote_data)) { 1674 1675 $response = $remote_data['body']; … … 1704 1705 1705 1706 if (empty($resp_arr)) { 1706 $remote_data = wp_remote_get('https://c.sitesuggest.io/?url=' . get_site_url() );1707 $remote_data = wp_remote_get('https://c.sitesuggest.io/?url=' . get_site_url().'?perfmatters=false&ao_noptimize=1&nowprocket'); 1707 1708 if (!is_wp_error($remote_data)) { 1708 1709 $response = $remote_data['body']; … … 1736 1737 } 1737 1738 if (empty($resp_arr)) { 1738 $remote_data = wp_remote_get('https://c.sitesuggest.io/?url=' . get_site_url(), ['timeout' => 60]);1739 $remote_data = wp_remote_get('https://c.sitesuggest.io/?url=' . get_site_url(),'?perfmatters=false&ao_noptimize=1&nowprocket', ['timeout' => 60]); 1739 1740 if (!is_wp_error($remote_data)) { 1740 1741 $response = $remote_data['body']; … … 1770 1771 1771 1772 if (empty($resp_arr)) { 1772 $remote_data = wp_remote_get('https://c.sitesuggest.io/?url=' . get_site_url() , ['timeout' => 60]);1773 $remote_data = wp_remote_get('https://c.sitesuggest.io/?url=' . get_site_url().'?perfmatters=false&ao_noptimize=1&nowprocket', ['timeout' => 60]); 1773 1774 if (!is_wp_error($remote_data)) { 1774 1775 $response = $remote_data['body']; -
site-suggest/trunk/app/main-controller.php
r3387629 r3390233 30 30 // add_action('process_all_pages_cron_event', array($this, 'process_all_pages')); 31 31 // add_action('stsgt_every_min_cron', array($this, 'process_all_pages_cron')); 32 add_action('stsgt_every_min_cron', array($this, 'send_diagnostic_data'));32 // add_action('stsgt_every_min_cron', array($this, 'send_diagnostic_data')); 33 33 // add_action('wp_footer', array($this, 'process_all_pages_cron')); 34 34 add_action('init', array($this, 'register_stsgt_log_post_type')); -
site-suggest/trunk/readme.txt
r3387629 r3390233 4 4 Tested up to: 6.8 5 5 Requires PHP: 7.2 6 Stable tag: 1.3. 76 Stable tag: 1.3.8 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 151 151 == Changelog == 152 152 153 = 1.3.7 - 2025-09-19 = 153 = 1.3.8 - 2025-11-05 = 154 * Improved User Experience. 155 * Improved Diagnostic Data Handling. 156 157 = 1.3.7 - 2025-10-27 = 154 158 * Improved Captcha Detection. 155 159 * Refined Cookie Banner Check. 156 160 * Added feature for tagline. 157 161 158 = 1.3.5 - 2025- 09-19=162 = 1.3.5 - 2025-10-10 = 159 163 * Google analytics improvement. 160 164 * Memory detection fixes. 161 165 162 = 1.3.3 - 2025-09-1 0=166 = 1.3.3 - 2025-09-14 = 163 167 * Schema detection fixes. 164 168 * Structure Improvement. 165 169 166 = 1.3.2 - 2025-09-1 0=170 = 1.3.2 - 2025-09-11 = 167 171 * Bug Fixes 168 172 -
site-suggest/trunk/site-suggest.php
r3387629 r3390233 6 6 * Author: Blurr Studio 7 7 * Author URI: https://blurr.it/ 8 * Version: 1.3. 78 * Version: 1.3.8 9 9 * License: GPL v2 or later 10 10 * License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 36 36 define('stsgt_URL', plugin_dir_url(__FILE__)); 37 37 define('stsgt_SLUG', 'site-suggest'); 38 define('stsgt_VERSION', '1.3. 7');38 define('stsgt_VERSION', '1.3.8'); 39 39 } 40 40
Note: See TracChangeset
for help on using the changeset viewer.