Changeset 54872
- Timestamp:
- 11/24/2022 10:09:39 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php
r54325 r54872 278 278 // Make sure the `request_filesystem_credentials()` function is available during our REST API call. 279 279 if ( ! function_exists( 'request_filesystem_credentials' ) ) { 280 require_once ABSPATH . ' /wp-admin/includes/file.php';280 require_once ABSPATH . 'wp-admin/includes/file.php'; 281 281 } 282 282 … … 329 329 // Make sure the `get_core_checksums()` function is available during our REST API call. 330 330 if ( ! function_exists( 'get_core_checksums' ) ) { 331 require_once ABSPATH . ' /wp-admin/includes/update.php';331 require_once ABSPATH . 'wp-admin/includes/update.php'; 332 332 } 333 333 -
trunk/src/wp-admin/includes/class-wp-site-health.php
r54506 r54872 66 66 public function show_site_health_tab( $tab ) { 67 67 if ( 'debug' === $tab ) { 68 require_once ABSPATH . ' /wp-admin/site-health-info.php';68 require_once ABSPATH . 'wp-admin/site-health-info.php'; 69 69 } 70 70 } -
trunk/src/wp-admin/includes/file.php
r54442 r54872 2443 2443 // from WP_Site_Health_Auto_Updates::test_check_wp_filesystem_method(). 2444 2444 if ( ! function_exists( 'submit_button' ) ) { 2445 require_once ABSPATH . ' /wp-admin/includes/template.php';2445 require_once ABSPATH . 'wp-admin/includes/template.php'; 2446 2446 } 2447 2447 ?> -
trunk/tests/phpunit/includes/bootstrap.php
r53902 r54872 303 303 304 304 // Load WordPress. 305 require_once ABSPATH . ' /wp-settings.php';305 require_once ABSPATH . 'wp-settings.php'; 306 306 307 307 // Delete any default posts & related data. -
trunk/tests/phpunit/includes/install.php
r53749 r54872 38 38 tests_add_filter( 'wp_die_handler', '_wp_die_handler_filter_exit' ); 39 39 40 require_once ABSPATH . ' /wp-settings.php';40 require_once ABSPATH . 'wp-settings.php'; 41 41 42 require_once ABSPATH . ' /wp-admin/includes/upgrade.php';43 require_once ABSPATH . ' /wp-includes/class-wpdb.php';42 require_once ABSPATH . 'wp-admin/includes/upgrade.php'; 43 require_once ABSPATH . 'wp-includes/class-wpdb.php'; 44 44 45 45 // Override the PHPMailer. -
trunk/tests/phpunit/tests/customize/widgets.php
r52010 r54872 557 557 private function get_test_widget_control_args() { 558 558 global $wp_registered_widgets; 559 require_once ABSPATH . ' /wp-admin/includes/widgets.php';559 require_once ABSPATH . 'wp-admin/includes/widgets.php'; 560 560 $widget_id = 'search-2'; 561 561 $widget = $wp_registered_widgets[ $widget_id ]; -
trunk/tests/phpunit/tests/feed/wpSimplePieFile.php
r52328 r54872 20 20 parent::set_up_before_class(); 21 21 22 require_once ABSPATH . ' /wp-includes/class-simplepie.php';23 require_once ABSPATH . ' /wp-includes/class-wp-simplepie-file.php';22 require_once ABSPATH . 'wp-includes/class-simplepie.php'; 23 require_once ABSPATH . 'wp-includes/class-wp-simplepie-file.php'; 24 24 } 25 25 -
trunk/tests/phpunit/tests/pluggable/signatures.php
r54716 r54872 77 77 public function get_defined_pluggable_functions() { 78 78 79 require_once ABSPATH . ' /wp-admin/includes/upgrade.php';79 require_once ABSPATH . 'wp-admin/includes/upgrade.php'; 80 80 81 81 $test_functions = array( … … 104 104 105 105 foreach ( $test_files as $file ) { 106 preg_match_all( '#^\t?function (\w+)#m', file_get_contents( ABSPATH . '/' .$file ), $functions );106 preg_match_all( '#^\t?function (\w+)#m', file_get_contents( ABSPATH . $file ), $functions ); 107 107 108 108 foreach ( $functions[1] as $function ) { -
trunk/tests/phpunit/tests/pluggable/wpMail.php
r54702 r54872 174 174 175 175 // Non-fatal errors. 176 $this->assertTrue( wp_mail( 'valid@address.com', 'subject', 'body', "Cc: invalid-address\nBcc: @invalid.address", ABSPATH . ' /non-existent-file.html' ) );176 $this->assertTrue( wp_mail( 'valid@address.com', 'subject', 'body', "Cc: invalid-address\nBcc: @invalid.address", ABSPATH . 'non-existent-file.html' ) ); 177 177 178 178 // Fatal errors. -
trunk/tests/phpunit/tests/pomo/po.php
r53850 r54872 49 49 parent::set_up_before_class(); 50 50 51 require_once ABSPATH . ' /wp-includes/pomo/po.php';51 require_once ABSPATH . 'wp-includes/pomo/po.php'; 52 52 } 53 53 -
trunk/tests/phpunit/tests/post.php
r54090 r54872 286 286 } 287 287 288 require_once ABSPATH . ' /wp-admin/includes/post.php';288 require_once ABSPATH . 'wp-admin/includes/post.php'; 289 289 290 290 $post_id = self::factory()->post->create(); -
trunk/tests/phpunit/tests/widgets.php
r54402 r54872 814 814 815 815 wp_widgets_init(); 816 require_once ABSPATH . ' /wp-admin/includes/widgets.php';816 require_once ABSPATH . 'wp-admin/includes/widgets.php'; 817 817 $widget_id = 'search-2'; 818 818 $widget = $wp_registered_widgets[ $widget_id ];
Note: See TracChangeset
for help on using the changeset viewer.