Opened 5 years ago
Closed 5 years ago
#4718 closed defect (bug) (fixed)
Plugin Directory: Permanent closure check not correct
Reported by: | Ipstenu | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Plugin Directory | Keywords: | |
Cc: |
Description
Probably my bad there but #4694 is not properly showing when a plugin is perma-closed.
This should get it.
Attachments (2)
Change History (12)
#1
@
5 years ago
- Component changed from General to Plugin Directory
- Owner set to SergeyBiryukov
- Status changed from new to reviewing
#4
@
5 years ago
Unless I'm missing something, 4718-2.diff is equivalent to the current code, just more verbose.
Looking at a couple of random recently closed plugins, they do display the "closure is permanent" notice:
Is there a plugin where the current check doesn't work as expected?
#5
follow-up:
↓ 6
@
5 years ago
It's not doing it on plugins that have no committers. So $contributors = get_the_terms( $post, 'plugin_contributors' );
isn't working as expected. I'll try to find another example, but of course looking for no-committers is hard.
#6
in reply to:
↑ 5
@
5 years ago
Replying to Ipstenu:
It's not doing it on plugins that have no committers. So
$contributors = get_the_terms( $post, 'plugin_contributors' );
isn't working as expected.
Thanks for the clarification!
- Should we check for both committers and contributors there, or just committers? Looking at some of the recently closed plugins with no committers, they all appear to retain their list of contributors, so probably the latter (only committers should be checked)?
- Are the text changes from 4718.diff ready for commit too?
#9
@
5 years ago
Should we check for both committers and contributors there, or just committers?
Just committers. Contrib are pulled from the readme, so we couldn't edit that without editing the code. committers are post-type meta, so when we wipe that it revokes practical access.
Are the text changes from 4718.diff ready for commit too?
Yes.
Does 4718.diff have all the changes? I only see text adjustments and adding
github-
to the list of trademarked slugs, no changes to permanent closure check.