mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@54872 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -37,10 +37,10 @@ $_SERVER['PHP_SELF'] = '/index.php';
|
||||
|
||||
tests_add_filter( 'wp_die_handler', '_wp_die_handler_filter_exit' );
|
||||
|
||||
require_once ABSPATH . '/wp-settings.php';
|
||||
require_once ABSPATH . 'wp-settings.php';
|
||||
|
||||
require_once ABSPATH . '/wp-admin/includes/upgrade.php';
|
||||
require_once ABSPATH . '/wp-includes/class-wpdb.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
|
||||
require_once ABSPATH . 'wp-includes/class-wpdb.php';
|
||||
|
||||
// Override the PHPMailer.
|
||||
global $phpmailer;
|
||||
|
||||
Reference in New Issue
Block a user