WordPress.org

Making WordPress.org

Opened 9 months ago

Closed 7 months ago

#2594 closed enhancement (fixed)

Plugin Directory: List pending plugins on 'add' page

Reported by: Ipstenu Owned by: tellyworth
Milestone: Plugin Directory v3.0 Priority: normal
Component: Plugin Directory Keywords: has-patch commit has-screenshots
Cc:

Description

It would be nice to see the statuses of submitted plugins on the ADD page. This may help people stop submitting the same one multiple times when they've missed emails.

Example (below the Blue Box of X plugins waiting review)

Yellow Box: You have X plugins in the review queue, Y are being actively reviewed.

  • Plugin 1 - Awaiting Review
  • Plugin 2 - Being Reviewed

Please wait at least 7 business days before asking for an update status from plugins@…

X is how many plugins YOU own that are draft & pending.

Y is how many plugins are in PENDING.

Attachments (4)

2594.patch (4.6 KB) - added by SergeyBiryukov 8 months ago.
2594.PNG (44.0 KB) - added by SergeyBiryukov 8 months ago.
2594.2.patch (4.2 KB) - added by SergeyBiryukov 8 months ago.
Refreshed after [5318]
2594.3.patch (4.8 KB) - added by SergeyBiryukov 8 months ago.
Switched to get_posts()

Download all attachments as: .zip

Change History (14)

@SergeyBiryukov
8 months ago

#1 @SergeyBiryukov
8 months ago

  • Keywords has-patch commit has-screenshots added

2594.patch implements the feature and fixes _n() usage for the existing string while we're at it.

#2 @SergeyBiryukov
8 months ago

Refreshed after [5318].

#3 follow-up: @dd32
8 months ago

Can we make use of WP_Query in get_submitted_plugins() rather than using direct SQL?

#4 in reply to: ↑ 3 ; follow-up: @SergeyBiryukov
8 months ago

Replying to dd32:

Can we make use of WP_Query in get_submitted_plugins() rather than using direct SQL?

That was my initial attempt, but it didn't work due to Plugin_Directory::pre_get_posts() altering the same query. Maybe it should bail early if not $wp_query->is_main_query()? I'm not sure how that affects the API or other parts.

2594.3.patch does that and switches Upload::get_submitted_plugins() to get_posts().

@SergeyBiryukov
8 months ago

Refreshed after [5318]

@SergeyBiryukov
8 months ago

Switched to get_posts()

This ticket was mentioned in Slack in #meta by tellyworth. View the logs.


7 months ago

#6 in reply to: ↑ 4 @SergeyBiryukov
7 months ago

Replying to SergeyBiryukov:

That was my initial attempt, but it didn't work due to Plugin_Directory::pre_get_posts() altering the same query. Maybe it should bail early if not $wp_query->is_main_query()?

The same issue now happens in #2787, see comment:7:ticket:2787.

This ticket was mentioned in Slack in #meta by sergey. View the logs.


7 months ago

#8 @tellyworth
7 months ago

  • Milestone changed from Plugin Directory v3 - Future to Plugin Directory v3.0

This ticket was mentioned in Slack in #meta by tellyworth. View the logs.


7 months ago

#10 @tellyworth
7 months ago

  • Owner set to tellyworth
  • Resolution set to fixed
  • Status changed from new to closed

In 5511:

Plugin directory: list author's pending plugins on Add page, to reduce duplicate uploads.

Fixes #2594

Note: See TracTickets for help on using tickets.