Changeset 61456 for trunk/src/wp-admin/includes/file.php
- Timestamp:
- 01/09/2026 04:20:21 AM (6 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/file.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r61375 r61456 909 909 910 910 // All tests are on by default. Most can be turned off by $overrides[{test_name}] = false; 911 $test_form = isset( $overrides['test_form'] ) ? $overrides['test_form'] :true;912 $test_size = isset( $overrides['test_size'] ) ? $overrides['test_size'] :true;911 $test_form = $overrides['test_form'] ?? true; 912 $test_size = $overrides['test_size'] ?? true; 913 913 914 914 // If you override this, you must provide $ext and $type!! 915 $test_type = isset( $overrides['test_type'] ) ? $overrides['test_type'] :true;916 $mimes = isset( $overrides['mimes'] ) ? $overrides['mimes'] :null;915 $test_type = $overrides['test_type'] ?? true; 916 $mimes = $overrides['mimes'] ?? null; 917 917 918 918 // A correct form post will pass this test. … … 2497 2497 } 2498 2498 2499 $hostname = isset( $credentials['hostname'] ) ? $credentials['hostname'] :'';2500 $username = isset( $credentials['username'] ) ? $credentials['username'] :'';2501 $public_key = isset( $credentials['public_key'] ) ? $credentials['public_key'] :'';2502 $private_key = isset( $credentials['private_key'] ) ? $credentials['private_key'] :'';2503 $port = isset( $credentials['port'] ) ? $credentials['port'] :'';2504 $connection_type = isset( $credentials['connection_type'] ) ? $credentials['connection_type'] :'';2499 $hostname = $credentials['hostname'] ?? ''; 2500 $username = $credentials['username'] ?? ''; 2501 $public_key = $credentials['public_key'] ?? ''; 2502 $private_key = $credentials['private_key'] ?? ''; 2503 $port = $credentials['port'] ?? ''; 2504 $connection_type = $credentials['connection_type'] ?? ''; 2505 2505 2506 2506 if ( $error ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)