Changeset 65409
- Timestamp:
- 11/12/2026 03:30:19 AM (less than one hour ago)
- Location:
- trunk/tests/phpunit/includes
- Files:
-
- 2 edited
-
bootstrap.php (modified) (1 diff)
-
functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/bootstrap.php
r65385 r65409 251 251 252 252 /* 253 * Isolate uploads in a dedicated directory when running the core test suite only, 254 * so that plugins and themes using the test suite keep the default uploads location. 255 * 253 256 * Tests that cover the upload_path and upload_url_path options run in a separate process 254 257 * with WP_TESTS_SKIP_UPLOADS_CONSTANT set, as UPLOADS overrides those options. 255 258 */ 256 if ( ! defined( 'UPLOADS' ) && '1' !== getenv( 'WP_TESTS_SKIP_UPLOADS_CONSTANT' ) ) { 259 if ( 260 defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS 261 && ! defined( 'UPLOADS' ) 262 && '1' !== getenv( 'WP_TESTS_SKIP_UPLOADS_CONSTANT' ) 263 ) { 257 264 define( 'UPLOADS', 'wp-content/test-suite-uploads' ); 258 265 -
trunk/tests/phpunit/includes/functions.php
r65335 r65409 361 361 */ 362 362 function _upload_get_url( $path = '', $scheme = 'http' ) { 363 return $scheme . '://' . WP_TESTS_DOMAIN . '/' . trailingslashit( UPLOADS ) . ltrim( $path, '/' ); 363 $uploads = defined( 'UPLOADS' ) ? UPLOADS : 'wp-content/uploads'; 364 365 return $scheme . '://' . WP_TESTS_DOMAIN . '/' . trailingslashit( $uploads ) . ltrim( $path, '/' ); 364 366 } 365 367
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)