Changeset 2747876
- Timestamp:
- 06/25/2022 08:46:14 AM (4 years ago)
- Location:
- easycpmods-toolbox/trunk
- Files:
-
- 3 edited
-
ecpm-toolbox.php (modified) (7 diffs)
-
readme.txt (modified) (2 diffs)
-
screenshot-1.png (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
easycpmods-toolbox/trunk/ecpm-toolbox.php
r2744220 r2747876 5 5 Description: EasyCPMods Toolbox is a free plugin for those who use EasyCPMods plugins. It allows grouping plugins into one group and will check for EasyCPMods plugin updates. 6 6 Author: EasyCPMods 7 Version: 2.1. 07 Version: 2.1.1 8 8 Author URI: http://www.easycpmods.com 9 9 Text Domain: ecpm-etb … … 12 12 define('ECPM_ETB_NAME', 'EasyCPMods Toolbox'); 13 13 define('ECPM_ETB', 'ecpm-etb'); 14 define('ECPM_ETB_VERSION', '2.1. 0');14 define('ECPM_ETB_VERSION', '2.1.1'); 15 15 define('ECPM_ETB_UPLOAD_FOLDER', 'ecpm_etb_plugin_logos'); 16 16 define('ECPM_ETB_SITE_URL', 'https://easycpmods.com/'); … … 48 48 if (is_array($ecpm_etb_settings) && array_key_exists('group_settings', $ecpm_etb_settings) && $ecpm_etb_settings['group_settings'] == 'on') { 49 49 if ($ecpm_etb_settings['update_available'] === true) 50 $update_icon = '<span class="etb-update" ></span>';50 $update_icon = '<span class="etb-update" title="'.__('Update available', ECPM_ETB).'"></span>'; 51 51 52 52 add_menu_page( 'EasyCPMods', 'EasyCPMods'.$update_icon, 'manage_options', 'ecpm-menu', 'ecpm_etb_settings_page_callback' ); … … 118 118 $ecpm_etb_settings['update_available'] = false; 119 119 $response = wp_remote_get( ECPM_ETB_API_URL.'updatedata?key='.$ecpm_etb_settings['api_key'].'&installed='.$installed_plugins ); 120 120 //echo "<br>".$response; 121 121 if( is_array($response) ) { 122 122 $response_data = json_decode(wp_remote_retrieve_body($response), true); … … 137 137 } else { 138 138 $ecpm_etb_settings['remote_plugin_data'] = array(); 139 139 140 foreach ($response_data as $key => $plugin_data) { 140 141 $ecpm_etb_settings['remote_plugin_data'][$key] = array( … … 156 157 157 158 $latest_version = ecpm_etb_check_latest($key, $ecpm_etb_settings); 158 if ($latest_version[' status'] !== true)159 if ($latest_version['compatibility'] === true && $latest_version['status'] !== true && $latest_version['installed_version'] != '') 159 160 $ecpm_etb_settings['update_available'] = true; 160 161 } … … 279 280 $plugin_data = get_plugin_data( $plugin_file ); 280 281 $ret_value['installed_version'] = $plugin_data['Version']; 281 } 282 } 282 283 283 284 if (isset($ecpm_etb_settings['remote_plugin_data'])) { -
easycpmods-toolbox/trunk/readme.txt
r2744220 r2747876 5 5 Requires at least: 3.5 6 6 Tested up to: 6.0 7 Stable tag: 2.1. 07 Stable tag: 2.1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 51 51 52 52 == Changelog == 53 = 2.1.1 = 54 * Fixed Update icon bug 55 53 56 = 2.1.0 = 54 57 * Added link to plugin settings and some other fixes
Note: See TracChangeset
for help on using the changeset viewer.