mirror of
git://develop.git.wordpress.org/
synced 2025-03-22 13:00:29 +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. Follow-up to [54872], [55720], [57545]. Props dhruvik18, SergeyBiryukov. Fixes #63102. git-svn-id: https://develop.svn.wordpress.org/trunk@60034 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
65f5e158ad
commit
71732ba84e
src
@ -1886,7 +1886,7 @@ class WP_Site_Health {
|
||||
);
|
||||
|
||||
if ( ! function_exists( 'WP_Filesystem' ) ) {
|
||||
require_once ABSPATH . '/wp-admin/includes/file.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/file.php';
|
||||
}
|
||||
|
||||
ob_start();
|
||||
|
@ -159,7 +159,7 @@ class WP_Plugin_Dependencies {
|
||||
* @return bool Whether the plugin has active dependents.
|
||||
*/
|
||||
public static function has_active_dependents( $plugin_file ) {
|
||||
require_once ABSPATH . '/wp-admin/includes/plugin.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
||||
|
||||
$dependents = self::get_dependents( self::convert_to_slug( $plugin_file ) );
|
||||
foreach ( $dependents as $dependent ) {
|
||||
@ -235,7 +235,7 @@ class WP_Plugin_Dependencies {
|
||||
return false;
|
||||
}
|
||||
|
||||
require_once ABSPATH . '/wp-admin/includes/plugin.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
||||
|
||||
foreach ( self::$dependencies[ $plugin_file ] as $dependency ) {
|
||||
$dependency_filepath = self::get_dependency_filepath( $dependency );
|
||||
@ -495,7 +495,7 @@ class WP_Plugin_Dependencies {
|
||||
wp_send_json_success( $status );
|
||||
}
|
||||
|
||||
require_once ABSPATH . '/wp-admin/includes/plugin.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
||||
|
||||
$inactive_dependencies = array();
|
||||
foreach ( $dependencies as $dependency ) {
|
||||
@ -544,7 +544,7 @@ class WP_Plugin_Dependencies {
|
||||
return self::$plugins;
|
||||
}
|
||||
|
||||
require_once ABSPATH . '/wp-admin/includes/plugin.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
||||
self::$plugins = get_plugins();
|
||||
|
||||
return self::$plugins;
|
||||
|
@ -1121,7 +1121,7 @@ function _wp_delete_all_temp_backups() {
|
||||
global $wp_filesystem;
|
||||
|
||||
if ( ! function_exists( 'WP_Filesystem' ) ) {
|
||||
require_once ABSPATH . '/wp-admin/includes/file.php';
|
||||
require_once ABSPATH . 'wp-admin/includes/file.php';
|
||||
}
|
||||
|
||||
ob_start();
|
||||
|
Loading…
x
Reference in New Issue
Block a user