Make WordPress Core


Ignore:
Timestamp:
11/24/2022 10:09:39 PM (3 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/tests/post.php

    r54090 r54872  
    286286        }
    287287
    288         require_once ABSPATH . '/wp-admin/includes/post.php';
     288        require_once ABSPATH . 'wp-admin/includes/post.php';
    289289
    290290        $post_id = self::factory()->post->create();
Note: See TracChangeset for help on using the changeset viewer.