Make WordPress Core


Ignore:
Timestamp:
03/17/2025 10:38:45 PM (14 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-includes/update.php

    r59927 r60034  
    11221122
    11231123    if ( ! function_exists( 'WP_Filesystem' ) ) {
    1124         require_once ABSPATH . '/wp-admin/includes/file.php';
     1124        require_once ABSPATH . 'wp-admin/includes/file.php';
    11251125    }
    11261126
Note: See TracChangeset for help on using the changeset viewer.