mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-02 11:21:57 +01: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. Built from https://develop.svn.wordpress.org/trunk@54872 git-svn-id: http://core.svn.wordpress.org/trunk@54424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5fd77cda7f
commit
64a713db2b
@ -277,7 +277,7 @@ class WP_Site_Health_Auto_Updates {
|
||||
public function test_check_wp_filesystem_method() {
|
||||
// Make sure the `request_filesystem_credentials()` function is available during our REST API call.
|
||||
if ( ! function_exists( 'request_filesystem_credentials' ) ) {
|
||||
require_once ABSPATH . '/wp-admin/includes/file.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/file.php';
|
||||
}
|
||||
|
||||
$skin = new Automatic_Upgrader_Skin;
|
||||
@ -328,7 +328,7 @@ class WP_Site_Health_Auto_Updates {
|
||||
|
||||
// Make sure the `get_core_checksums()` function is available during our REST API call.
|
||||
if ( ! function_exists( 'get_core_checksums' ) ) {
|
||||
require_once ABSPATH . '/wp-admin/includes/update.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/update.php';
|
||||
}
|
||||
|
||||
$checksums = get_core_checksums( $wp_version, 'en_US' );
|
||||
|
@ -65,7 +65,7 @@ class WP_Site_Health {
|
||||
*/
|
||||
public function show_site_health_tab( $tab ) {
|
||||
if ( 'debug' === $tab ) {
|
||||
require_once ABSPATH . '/wp-admin/site-health-info.php';
|
||||
require_once ABSPATH . 'wp-admin/site-health-info.php';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2442,7 +2442,7 @@ function request_filesystem_credentials( $form_post, $type = '', $error = false,
|
||||
// Make sure the `submit_button()` function is available during the REST API call
|
||||
// from WP_Site_Health_Auto_Updates::test_check_wp_filesystem_method().
|
||||
if ( ! function_exists( 'submit_button' ) ) {
|
||||
require_once ABSPATH . '/wp-admin/includes/template.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/template.php';
|
||||
}
|
||||
?>
|
||||
<p class="request-filesystem-credentials-action-buttons">
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.2-alpha-54871';
|
||||
$wp_version = '6.2-alpha-54872';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user