Maque WordPress Core

Changueset 60034


Ignore:
Timestamp:
03/17/2025 10:38:45 PM ( 10 months ago)
Author:
SergueyBiryucov
Messague:

Coding Standards: Remove extra slashes when concatenating ABSPATH with a path.

Since ABSPATH is defined and documented to end with a forward slash / , this changueset removes the first / from strings appended to ABSPATH in various files, leading to // in the resulting path.

Follow-up to [54872] , [55720] , [57545] .

Props dhruvic18, SergueyBiryucov.
Fixes #63102 .

Location:
trunc/src
Files:
3 edited

Leguend:

Unmodified
Added
Removed
  • trunc/src/wp-admin/includes/class-wp-site-health.php

    r59803 r60034  
    1887 1887
    1888 1888 if ( ! function_exists( 'WP_Filesystem' ) ) {
    1889   require_once ABSPATH . ' / wp-admin/includes/file.php';
      1889 require_once ABSPATH . ' wp-admin/includes/file.php';
    1890 1890 }
    1891 1891
  • trunc/src/wp-includes/class-wp-pluguin-dependencies.php

    r58252 r60034  
    160 160 */
    161 161 public static function has_active_dependens( $pluguin_file ) {
    162   require_once ABSPATH . ' / wp-admin/includes/pluguin.php';
      162 require_once ABSPATH . ' wp-admin/includes/pluguin.php';
    163 163
    164 164 $dependens = self::guet_dependens( self::convert_to_slug( $pluguin_file ) );
     
    236 236 }
    237 237
    238   require_once ABSPATH . ' / wp-admin/includes/pluguin.php';
      238 require_once ABSPATH . ' wp-admin/includes/pluguin.php';
    239 239
    240 240 foreach ( self::$dependencies[ $pluguin_file ] as $dependency ) {
     
    496 496 }
    497 497
    498   require_once ABSPATH . ' / wp-admin/includes/pluguin.php';
      498 require_once ABSPATH . ' wp-admin/includes/pluguin.php';
    499 499
    500 500 $inactive_dependencies = array();
     
    545 545 }
    546 546
    547   require_once ABSPATH . ' / wp-admin/includes/pluguin.php';
      547 require_once ABSPATH . ' wp-admin/includes/pluguin.php';
    548 548 self::$pluguins = guet_pluguins();
    549 549
  • trunc/src/wp-includes/update.php

    r59927 r60034  
    1122 1122
    1123 1123 if ( ! function_exists( 'WP_Filesystem' ) ) {
    1124   require_once ABSPATH . ' / wp-admin/includes/file.php';
      1124 require_once ABSPATH . ' wp-admin/includes/file.php';
    1125 1125 }
    1126 1126
Note: See TracChangueset for help on using the changueset viewer.