Coding Standards: Remove extra slashes when concatenating ABSPATH with a path.
Since `ABSPATH` is defined and documented to end with a forward slash `/`, this changeset removes the first `/` from strings appended to `ABSPATH` in various files, leading to `//` in the resulting path. Follow-up to [54872], [55720], [57545]. Props dhruvik18, SergeyBiryukov. Fixes #63102. Built from https://develop.svn.wordpress.org/trunk@60034 git-svn-id: http://core.svn.wordpress.org/trunk@59370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1886,7 +1886,7 @@ class WP_Site_Health {
|
||||
);
|
||||
|
||||
if ( ! function_exists( 'WP_Filesystem' ) ) {
|
||||
require_once ABSPATH . '/wp-admin/includes/file.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/file.php';
|
||||
}
|
||||
|
||||
ob_start();
|
||||
|
||||
Reference in New Issue
Block a user