wordpress-website-lifecycle/check-installation/wp-invalid-media.sh
2025-04-02 07:48:46 +00:00

9 lines
186 B
Bash
Executable file

#!/bin/bash
#
# Find WordPress media with non-slug filename.
#
# VERSION :0.1.0
set -e
find "$(wp eval 'echo wp_upload_dir()["basedir"];')" -type f -regex '.*[^/0-9A-Za-z._-].*'