#1706 closed defect (bug) (fixed)
Uploaded plugins with `draft` status will appear in the repository.
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Plugin Directory | Keywords: | |
Cc: |
Description
If you use the [wporg-plugin-upload] to handle a plugin upload. The plugin post will default to draft
status. Posts with draft
status should not be public facing, even though it would be difficult to stumble across the plugin. If you were to go to plugins/my-slug (on meta environment plugins-wp/my-slug ) then you will find that freshly uploaded plugin sitting on its own page. pending
and approved
statuses do not share this problem.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Around line 340 of class-plugin-directory.php, you can add a post_status of publish to query:
That should ensure that only published plugins will be visible on the front end.