WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/13/2019 04:45:05 AM (18 months ago)
Author:
SergeyBiryukov
Message:

Bootstrap/Load: Remove duplicate leading slashes on inclusion of various files under ABSPATH.

Props dmsnell, birgire, szepe.viktor.
Fixes #46327.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php

    r45118 r45190  
    351351                continue;
    352352            }
    353             if ( ! file_exists( ABSPATH . '/' . $file ) ) {
     353            if ( ! file_exists( ABSPATH . $file ) ) {
    354354                continue;
    355355            }
    356             if ( ! is_writable( ABSPATH . '/' . $file ) ) {
     356            if ( ! is_writable( ABSPATH . $file ) ) {
    357357                $unwritable_files[] = $file;
    358358            }
Note: See TracChangeset for help on using the changeset viewer.