We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b24a773 commit 1aa6e7aCopy full SHA for 1aa6e7a
1 file changed
src/DetectSitemapsURLs.php
@@ -76,14 +76,8 @@ public static function detect( string $wp_site_url ): \Iterator {
76
77
$headers = [];
78
79
- $auth_user = CoreOptions::getValue( 'basicAuthUser' );
80
-
81
- if ( $auth_user ) {
82
- $auth_password = CoreOptions::getValue( 'basicAuthPassword' );
83
84
- if ( $auth_password ) {
85
- $headers['auth'] = [ $auth_user, $auth_password ];
86
- }
+ if ( $auth_user && $auth_password ) {
+ $headers['auth'] = [ $auth_user, $auth_password ];
87
}
88
89
$request = new Request( 'GET', $base_uri . '/robots.txt', $headers );
0 commit comments