Skip to content

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

Merged
swissspidy merged 1 commit into
mainfrom
default-force-check
Mar 20, 2025
Merged

Don't use transient values when doing wp plugin|theme list#446
swissspidy merged 1 commit into
mainfrom
default-force-check

Conversation

@mrsdizzie

Copy link
Copy Markdown
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.

@mrsdizzie
mrsdizzie requested a review from a team as a code owner March 19, 2025 15:45
@mrsdizzie mrsdizzie added command:plugin-list Related to 'plugin list' command command:theme-list Related to 'theme list' command labels Mar 19, 2025
@mrsdizzie mrsdizzie added this to the 2.1.24 milestone Mar 19, 2025
@codecov

codecov Bot commented Mar 19, 2025

Copy link
Copy Markdown

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

@swissspidy swissspidy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice one! πŸš€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:plugin-list Related to 'plugin list' command command:theme-list Related to 'theme list' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants