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.

Props TobiasBg, audrasjb, SergeyBiryukov, emanuelx.
Fixes #57074.
See #57071.


git-svn-id: https://develop.svn.wordpress.org/trunk@54872 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras
2022-11-24 22:09:39 +00:00
parent bb948c5f6d
commit d19f5f0170
12 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -2442,7 +2442,7 @@ function request_filesystem_credentials( $form_post, $type = '', $error = false,
// Make sure the `submit_button()` function is available during the REST API call
// from WP_Site_Health_Auto_Updates::test_check_wp_filesystem_method().
if ( ! function_exists( 'submit_button' ) ) {
require_once ABSPATH . '/wp-admin/includes/template.php';
require_once ABSPATH . 'wp-admin/includes/template.php';
}
?>
<p class="request-filesystem-credentials-action-buttons">