[wp-meta] [Making WordPress.org] #2594: Plugin Directory: List pending plugins on 'add' page
Making WordPress.org
noreply at wordpress.org
Tue Apr 11 13:48:28 UTC 2017
#2594: Plugin Directory: List pending plugins on 'add' page
-------------------------------------+-------------------------------------
Reporter: Ipstenu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Plugin Directory v3 -
Component: Plugin Directory | Future
Keywords: has-patch commit has- | Resolution:
screenshots |
-------------------------------------+-------------------------------------
Comment (by SergeyBiryukov):
Replying to [comment:3 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.
[attachment:2594.3.patch] does that and switches
`Upload::get_submitted_plugins()` to `get_posts()`.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2594#comment:4>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list