WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/13/2019 04:45:05 AM (8 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-debug-data.php

    r45176 r45190  
    667667
    668668        // Check if a .htaccess file exists.
    669         if ( is_file( ABSPATH . '/.htaccess' ) ) {
     669        if ( is_file( ABSPATH . '.htaccess' ) ) {
    670670            // If the file exists, grab the content of it.
    671             $htaccess_content = file_get_contents( ABSPATH . '/.htaccess' );
     671            $htaccess_content = file_get_contents( ABSPATH . '.htaccess' );
    672672
    673673            // Filter away the core WordPress rules.
Note: See TracChangeset for help on using the changeset viewer.