elementor / WordPressURLDetector

A library to get all public URLs from a WordPress application.
The Unlicense
7 stars 3 forks source link

remove network dependency for Sitemap detection #1

Open leonstafford opened 3 years ago

leonstafford commented 3 years ago

currently, in https://github.com/leonstafford/WordPressURLDetector/blob/main/src/DetectSitemaps.php, I'm making Guzzle requests to sitemap and robots.txt URLs. This makes things harder to test and the library more brittle.

Removing any network requests will ease usage, remove need to provide curl options for auth/ports, etc.

There should be an easier way to interrogate WP, Yoast, etc for the sitemap contents.