You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add --exclude=<file>,<file> argument to skip files聽#64
I think this is a great idea, but I would wish it would be implemented more universally for verify-checksums. So, not only for core, but also for plugins and any other thing which uses this command.
Thus the argument should be more universally named (--exclude?) and it should IMHO follow the current coding style: a comma separated list of items (file names or plugin slugs).
Any chance someone has already worked on this? Helping a client manage their wordpress installations more automatically and they want to reinstall wordpress installs that fail verification. Since the readme.html is either deleted or renamed this check almost always fails and results in extra work reinstalling the wordpress core. Would like to be able to ignore readme.html from being verified.
I can give it a shot if no one has time. Seems pretty simple to add another arg to the core command and then add the necessary logic during the file loop.
@kwbtdisk Please feel free if you have the time. I have not had any block of time to sit down and hammer it out. The issue is not a big one right now but will be for my client once we have other aspects completed.
+1 highly agree. Would like to schedule wp core verify-checksums as part of regular security scans however I'd prefer to ignore if readme.html and wp-config-sample.php files are deleted.
I guess I'd be fine with an --exclude= argument that accepts one or more comma-separated files, as long as there aren't any security issues associated with it.
Activity
R33D3M33R commentedon May 29, 2019
Hello,
I think this is a great idea, but I would wish it would be implemented more universally for verify-checksums. So, not only for core, but also for plugins and any other thing which uses this command.
Thus the argument should be more universally named (--exclude?) and it should IMHO follow the current coding style: a comma separated list of items (file names or plugin slugs).
Best regards,
Andrej
Austinb commentedon Jun 24, 2019
Any chance someone has already worked on this? Helping a client manage their wordpress installations more automatically and they want to reinstall wordpress installs that fail verification. Since the readme.html is either deleted or renamed this check almost always fails and results in extra work reinstalling the wordpress core. Would like to be able to ignore readme.html from being verified.
I can give it a shot if no one has time. Seems pretty simple to add another arg to the core command and then add the necessary logic during the file loop.
kwbtdisk commentedon Jun 28, 2019
Woops sorry I didn't check this thread. @Austinb Have you started working on this? If not, let me take this 馃槂
Austinb commentedon Jun 28, 2019
@kwbtdisk Please feel free if you have the time. I have not had any block of time to sit down and hammer it out. The issue is not a big one right now but will be for my client once we have other aspects completed.
austinginder commentedon Jul 6, 2022
+1 highly agree. Would like to schedule
wp core verify-checksumsas part of regular security scans however I'd prefer to ignore ifreadme.htmlandwp-config-sample.phpfiles are deleted.Current behavior is:
Maybe something like this with a repeatable argument for many files?
[-][Enhancement idea] Add an option to skip files[/-][+]Add `--exclude=<file>,<file>` argument to skip files[/+]danielbachhuber commentedon Sep 7, 2023
I guess I'd be fine with an
--exclude=argument that accepts one or more comma-separated files, as long as there aren't any security issues associated with it.Add ignore-files argument for core verify-checksums command (wp-cli#64)
Add ignore-files argument for core verify-checksums command (wp-cli#64)
iDschepe commentedon Jun 13, 2024
Would like to work on it.
wp-cligh-64 added exclude argument in checksums
skora-cpl commentedon Apr 9, 2025
thanks for working on it @iDschepe - this was implemented in #123 and can be closed.