Changeset 56552
- Timestamp:
- 09/11/2023 04:51:09 AM (14 months ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r56245 r56552 157 157 */ 158 158 function _get_template_edit_filename( $fullpath, $containingfolder ) { 159 return str_replace( dirname( dirname( $containingfolder )), '', $fullpath );159 return str_replace( dirname( $containingfolder, 2 ), '', $fullpath ); 160 160 } 161 161 -
trunk/src/wp-admin/maint/repair.php
r55645 r56552 8 8 define( 'WP_REPAIRING', true ); 9 9 10 require_once dirname( dirname( __DIR__ )) . '/wp-load.php';10 require_once dirname( __DIR__, 2 ) . '/wp-load.php'; 11 11 12 12 header( 'Content-Type: text/html; charset=utf-8' ); -
trunk/tests/phpunit/includes/bootstrap.php
r56547 r56552 11 11 // Support the config file from the root of the develop repository. 12 12 if ( basename( $config_file_path ) === 'phpunit' && basename( dirname( $config_file_path ) ) === 'tests' ) { 13 $config_file_path = dirname( dirname( $config_file_path ));13 $config_file_path = dirname( $config_file_path, 2 ); 14 14 } 15 15 } … … 80 80 if ( ! class_exists( 'Yoast\PHPUnitPolyfills\Autoload' ) ) { 81 81 // Default location of the autoloader for WP core test runs. 82 $phpunit_polyfills_autoloader = dirname( dirname( dirname( __DIR__ ) )) . '/vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php';82 $phpunit_polyfills_autoloader = dirname( __DIR__, 3 ) . '/vendor/yoast/phpunit-polyfills/phpunitpolyfills-autoload.php'; 83 83 $phpunit_polyfills_error = false; 84 84 -
trunk/tests/phpunit/tests/filesystem/base.php
r52010 r56552 25 25 } 26 26 public function filter_abstraction_file( $file ) { 27 return dirname( dirname( __DIR__ )) . '/includes/mock-fs.php';27 return dirname( __DIR__, 2 ) . '/includes/mock-fs.php'; 28 28 } 29 29 -
trunk/tests/phpunit/tests/pomo/pluralForms.php
r56549 r56552 44 44 */ 45 45 public function test_regression( $lang, $nplurals, $expression ) { 46 require_once dirname( dirname( __DIR__ )) . '/includes/plural-form-function.php';46 require_once dirname( __DIR__, 2 ) . '/includes/plural-form-function.php'; 47 47 48 48 $parenthesized = self::parenthesize_plural_expression( $expression );
Note: See TracChangeset
for help on using the changeset viewer.