Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

alleyinteractive/wxr-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

WXR Validator

A WP-CLI command to validate WordPress WXR files.

Currently, this will only validate images. Here's a summary of what it does:

  • It collects all "attachment" posts in the WXR
  • It collects all HTML image references elsewhere in the WXR, e.g. an image url in an <img> tag.
    • Note: It identifies these as any image URL wrapped in quotes. It's possible that some references may not be caught, e.g. inline CSS where an image is only wrapped in parentheses.
  • For each unique URL found (removing variations), it checks to see that each url is valid and responds with an HTTP response code of 200.

About

A WP-CLI command to validate WXR data

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages