Make WordPress Core


Ignore:
Timestamp:
11/24/2022 10:09:39 PM (2 years ago)
Author:
audrasjb
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.

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

File:
1 edited

Legend:

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

    r54325 r54872  
    278278        // Make sure the `request_filesystem_credentials()` function is available during our REST API call.
    279279        if ( ! function_exists( 'request_filesystem_credentials' ) ) {
    280             require_once ABSPATH . '/wp-admin/includes/file.php';
     280            require_once ABSPATH . 'wp-admin/includes/file.php';
    281281        }
    282282
     
    329329        // Make sure the `get_core_checksums()` function is available during our REST API call.
    330330        if ( ! function_exists( 'get_core_checksums' ) ) {
    331             require_once ABSPATH . '/wp-admin/includes/update.php';
     331            require_once ABSPATH . 'wp-admin/includes/update.php';
    332332        }
    333333
Note: See TracChangeset for help on using the changeset viewer.