Changeset 3244924
- Timestamp:
- 02/22/2025 03:23:59 PM (12 months ago)
- Location:
- multi-connect
- Files:
-
- 21 added
- 4 edited
-
tags/1.0.47 (added)
-
tags/1.0.47/.editorconfig (added)
-
tags/1.0.47/assets (added)
-
tags/1.0.47/assets/css (added)
-
tags/1.0.47/assets/css/admin.css (added)
-
tags/1.0.47/assets/js (added)
-
tags/1.0.47/assets/js/admin.js (added)
-
tags/1.0.47/includes (added)
-
tags/1.0.47/includes/class-admin.php (added)
-
tags/1.0.47/includes/class-multi-connect-api.php (added)
-
tags/1.0.47/includes/class-multi-connect-upgrader-skin.php (added)
-
tags/1.0.47/includes/public.key (added)
-
tags/1.0.47/languages (added)
-
tags/1.0.47/languages/multi-connect-es.mo (added)
-
tags/1.0.47/languages/multi-connect-es.po (added)
-
tags/1.0.47/languages/multi-connect.pot (added)
-
tags/1.0.47/logo.png (added)
-
tags/1.0.47/multi-connect.php (added)
-
tags/1.0.47/phpcs.xml (added)
-
tags/1.0.47/readme.txt (added)
-
tags/1.0.47/uninstall.php (added)
-
trunk/includes/class-admin.php (modified) (1 diff)
-
trunk/includes/class-multi-connect-api.php (modified) (2 diffs)
-
trunk/multi-connect.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
multi-connect/trunk/includes/class-admin.php
r3243412 r3244924 50 50 public function display_connection_notice() { 51 51 if ( ! get_option( 'multiconnect_show_notice' ) ) { 52 //return;52 return; 53 53 } 54 54 -
multi-connect/trunk/includes/class-multi-connect-api.php
r3244671 r3244924 168 168 'callback' => [ $this, 'process_auto_login' ], 169 169 'permission_callback' => '__return_true', 170 ) 171 ); 172 173 register_rest_route( 174 $this->namespace, 175 '/site-info', 176 array( 177 'methods' => 'GET', 178 'callback' => [ $this, 'get_site_info' ], 179 'permission_callback' => array( $this, 'check_update_permission' ), 170 180 ) 171 181 ); … … 1127 1137 exit; 1128 1138 } 1139 1140 public function get_site_info($request) { 1141 $systemInfo = []; 1142 1143 $siteChecker = WP_Site_Health::get_instance(); 1144 $systemChecks = WP_Site_Health::get_tests(); 1145 $systemChecks = $systemChecks['direct']; 1146 1147 $requiredChecks = [ 1148 'wordpress_version', 1149 'php_version', 1150 'php_extensions', 1151 'php_default_timezone', 1152 'sql_server', 1153 'ssl_support', 1154 'file_uploads', 1155 'available_updates_disk_space', 1156 'autoloaded_options', 1157 ]; 1158 1159 foreach ( $requiredChecks as $checkName ) { 1160 if (!isset($systemChecks[ $checkName ])) { 1161 continue; 1162 } 1163 $checkLabel = $systemChecks[ $checkName ]['test']; 1164 $checkFunction = 'get_test_' . $checkLabel; 1165 1166 if ( ! method_exists( $siteChecker, $checkFunction ) ) { 1167 continue; 1168 } 1169 1170 $systemInfo[ $checkLabel ] = $siteChecker->{$checkFunction}(); 1171 } 1172 1173 return $systemInfo; 1174 } 1129 1175 } -
multi-connect/trunk/multi-connect.php
r3244671 r3244924 4 4 * Plugin URI: https://multi-wp.com 5 5 * Description: Connect your WordPress site with Multi-WP for centralized management and updates. 6 * Version: 1.0.4 66 * Version: 1.0.47 7 7 * Requires at least: 5.8 8 8 * Requires PHP: 7.4 -
multi-connect/trunk/readme.txt
r3244671 r3244924 5 5 Tested up to: 6.7 6 6 Requires PHP: 7.4 7 Stable tag: 1.0.4 67 Stable tag: 1.0.47 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 44 44 45 45 == Changelog == 46 47 = 1.0.47 = 48 * Info site. 46 49 47 50 = 1.0.46 =
Note: See TracChangeset
for help on using the changeset viewer.