Changeset 56174 for trunk/src/wp-admin/includes/file.php
- Timestamp:
- 07/09/2023 07:50:52 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r56069 r56174 575 575 576 576 if ( function_exists( 'session_status' ) && PHP_SESSION_ACTIVE === session_status() ) { 577 // Close any active session to prevent HTTP requests from timing out 578 // when attempting to connect back to the site. 577 /* 578 * Close any active session to prevent HTTP requests from timing out 579 * when attempting to connect back to the site. 580 */ 579 581 session_write_close(); 580 582 } … … 1252 1254 1253 1255 if ( ! $signature ) { 1254 // Retrieve signatures from a file if the header wasn't included. 1255 // WordPress.org stores signatures at $package_url.sig. 1256 /* 1257 * Retrieve signatures from a file if the header wasn't included. 1258 * WordPress.org stores signatures at $package_url.sig. 1259 */ 1256 1260 1257 1261 $signature_url = false; … … 1387 1391 extension_loaded( 'opcache' ) 1388 1392 ) { 1389 // Sodium_Compat isn't compatible with PHP 7.2.0~7.2.2 due to a bug in the PHP Opcache extension, bail early as it'll fail. 1390 // https://bugs.php.net/bug.php?id=75938 1393 /* 1394 * Sodium_Compat isn't compatible with PHP 7.2.0~7.2.2 due to a bug in the PHP Opcache extension, bail early as it'll fail. 1395 * https://bugs.php.net/bug.php?id=75938 1396 */ 1391 1397 return new WP_Error( 1392 1398 'signature_verification_unsupported', … … 1421 1427 } 1422 1428 1423 // This cannot be performed in a reasonable amount of time. 1424 // https://github.com/paragonie/sodium_compat#help-sodium_compat-is-slow-how-can-i-make-it-fast 1429 /* 1430 * This cannot be performed in a reasonable amount of time. 1431 * https://github.com/paragonie/sodium_compat#help-sodium_compat-is-slow-how-can-i-make-it-fast 1432 */ 1425 1433 if ( ! $sodium_compat_is_fast ) { 1426 1434 return new WP_Error( … … 2328 2336 ); 2329 2337 2330 // If defined, set it to that. Else, if POST'd, set it to that. If not, set it to an empty string. 2331 // Otherwise, keep it as it previously was (saved details in option). 2338 /* 2339 * If defined, set it to that. Else, if POST'd, set it to that. If not, set it to an empty string. 2340 * Otherwise, keep it as it previously was (saved details in option). 2341 */ 2332 2342 foreach ( $ftp_constants as $key => $constant ) { 2333 2343 if ( defined( $constant ) ) { … … 2532 2542 } 2533 2543 2534 // Make sure the `submit_button()` function is available during the REST API call 2535 // from WP_Site_Health_Auto_Updates::test_check_wp_filesystem_method(). 2544 /* 2545 * Make sure the `submit_button()` function is available during the REST API call 2546 * from WP_Site_Health_Auto_Updates::test_check_wp_filesystem_method(). 2547 */ 2536 2548 if ( ! function_exists( 'submit_button' ) ) { 2537 2549 require_once ABSPATH . 'wp-admin/includes/template.php';
Note: See TracChangeset
for help on using the changeset viewer.