Skip to content

Don't use transient values when doing wp plugin|theme list #446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2025

Conversation

mrsdizzie
Copy link
Member

This changes the default behavior to always check wordpress.org for the latest information when doing wp plugin|theme list unless the existing --skip-update-check flag is passed.

This came out of the discussion in #426 and replaces that PR. The main idea is that it doesn't make any sense to have both --force-check and --skip-update-check flags while also having the default behavior be unpredictable depending on the state of the transient.

I created a new PR since pretty much all of the code is test code and that is different now that we are changing the default behavior instead of adding a flag.

Copy link

codecov bot commented Mar 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@mrsdizzie mrsdizzie force-pushed the default-force-check branch from f37da9c to 8f4976f Compare March 19, 2025 18:17
This changes the default behavior to always check wordpress.org for the
latest information when doing wp plugin|theme list unless the existing
`--skip-update-check` flag is passed.
@mrsdizzie mrsdizzie force-pushed the default-force-check branch from 8f4976f to 456a1ef Compare March 19, 2025 18:20
Copy link
Member

@swissspidy swissspidy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one! 🚀

@swissspidy swissspidy merged commit 131bb09 into main Mar 20, 2025
40 checks passed
@swissspidy swissspidy deleted the default-force-check branch March 20, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants