-
Notifications
You must be signed in to change notification settings - Fork 16
Add auto-update-enabled and auto-update-disabled views on the plugins screen #18
Conversation
There are inline comments and notes in the DocBlocks of the 2 functions this PR adds that describe where changes will be needed if/when this is merged into core. Adding the views is straightforward, with core's Limiting the plugins displayed in the list table when one of those views is current is a bit of a hack, but since the readme says
I guess it's OK :-) The hack uses core's |
Also, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change on line 31 was not intentional....there must be a whitespace difference between that line in master
and in the plugin in the .org repo.
Thanks @pbiron ! Worth also adding it to the Feature Plugin, thanks! Cheers 🍻 |
Cool, didn't realize that.
Would it help if I updated the PR to more closely match what is in the diff on Trac? |
And shame on me for using the right hook to add the views in multisite and for adding them on the non-network plugins screen in multisite :-) Me, of all people, should have known better :-) I'll update the PR accordingly, but will wait to hear back from you about whether I should also make things more closely match what's in the diff on Trac. |
That's not mandatory, but it would be a nice to have indeed :-) |
…ps://core.trac.wordpress.org/attachment/ticket/48850/48850.11.diff. Also, in multisite only add the views on the plugins-network screen.
PR updated:
|
I made some fixes (in a PR in your branch):
|
….trac.wordpress.org/attachment/ticket/48850/48850.11.diff; 2) fix typo in $wp_autoupdate_plugins variable name; 3) when computing the counts of plugins in each view, remove entries from the wp_auto_update_plugins site option that are no longer installed.
PR updated.
|
Thanks for the update Paul! |
2 things before you merge this:
|
Thanks Paul. |
Fixes #17