mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 04:34:31 +00:00
Bootstrap/Load: Remove duplicate leading slashes on inclusion of various files under ABSPATH.
Props dmsnell, birgire, szepe.viktor. Fixes #46327. git-svn-id: https://develop.svn.wordpress.org/trunk@45190 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -666,9 +666,9 @@ class WP_Debug_Data {
|
||||
);
|
||||
|
||||
// Check if a .htaccess file exists.
|
||||
if ( is_file( ABSPATH . '/.htaccess' ) ) {
|
||||
if ( is_file( ABSPATH . '.htaccess' ) ) {
|
||||
// If the file exists, grab the content of it.
|
||||
$htaccess_content = file_get_contents( ABSPATH . '/.htaccess' );
|
||||
$htaccess_content = file_get_contents( ABSPATH . '.htaccess' );
|
||||
|
||||
// Filter away the core WordPress rules.
|
||||
$filtered_htaccess_content = trim( preg_replace( '/\# BEGIN WordPress[\s\S]+?# END WordPress/si', '', $htaccess_content ) );
|
||||
|
||||
Reference in New Issue
Block a user