Opened 8 years ago
Closed 8 years ago
#2468 closed defect (bug) (fixed)
plugin rating: web vs backend discrepancies
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Plugin Directory v3.0 | Priority: | normal |
Component: | Plugin Directory | Keywords: | has-screenshots has-patch commit |
Cc: |
Attachments (1)
Change History (6)
#3
@
8 years ago
Looks like the API might be the problem here, it returns inconsistent ordering in different cases, see the discussion in #WP39769.
#4
@
8 years ago
- Keywords has-patch commit added; ui-feedback ux-feedback removed
- Milestone set to Plugin Directory v3.0
WordPress trunk is currently using the new plugin directory API to test it (per @samuelsidler on Slack), and I've traced the issue to the API endpoints there.
It's not an issue in the directory itself, because the Ratings widget uses a hardcoded range( 5, 1 ) in the foreach()
loop, instead of using the actual order as returned by the API.
meta-2468.patch contains a patch and a unit test assertion.
Note: See
TracTickets for help on using
tickets.
Hi @agm65, welcome to WordPress Meta Trac! Thanks for the report.
Good catch, I guess the ordering in WordPress admin should be changed to follow the directory (it's the same in both current and new directory), because it's more intuitive to have 5 stars at the top.
Could you create a ticket on WordPress Core Trac for that?