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/tests/phpunit/includes/install.php

    r53749 r54872  
    3838tests_add_filter( 'wp_die_handler', '_wp_die_handler_filter_exit' );
    3939
    40 require_once ABSPATH . '/wp-settings.php';
     40require_once ABSPATH . 'wp-settings.php';
    4141
    42 require_once ABSPATH . '/wp-admin/includes/upgrade.php';
    43 require_once ABSPATH . '/wp-includes/class-wpdb.php';
     42require_once ABSPATH . 'wp-admin/includes/upgrade.php';
     43require_once ABSPATH . 'wp-includes/class-wpdb.php';
    4444
    4545// Override the PHPMailer.
Note: See TracChangeset for help on using the changeset viewer.