Make WordPress Core


Ignore:
Timestamp:
03/17/2025 10:38:45 PM (12 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r59803 r60034  
    18871887
    18881888        if ( ! function_exists( 'WP_Filesystem' ) ) {
    1889             require_once ABSPATH . '/wp-admin/includes/file.php';
     1889            require_once ABSPATH . 'wp-admin/includes/file.php';
    18901890        }
    18911891
Note: See TracChangeset for help on using the changeset viewer.