[wp-trac] [WordPress Trac] #39769: plugin rating: web vs backend discrepancies
WordPress Trac
noreply at wordpress.org
Mon Feb 13 21:08:48 UTC 2017
#39769: plugin rating: web vs backend discrepancies
----------------------------------------+--------------------------------
Reporter: agm65 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.8
Component: Plugins | Version: 4.7.2
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug | Focuses: ui, accessibility
----------------------------------------+--------------------------------
Comment (by tristangemus):
The Wordpress.org API is using the user-agent to do something on their
end.
Add the following code to your theme.
Steps to show the proper order:
1. Use the 'http_request_args' filter to modify the request args
{{{#!php
add_filter( 'http_request_args', function( $r, $url ) {
$r['user-agent'] = 'WordPress/4.7.2; http://wordpress.dev';
return $r;
}, 10, 2 );
}}}
2. Click 'View Details' on any plugin
* You should have the proper order now.
We can of course modify the order of this on our end, but that seems
messy. I haven't worked with the Wordpress.org API, I think it makes the
most sense to reach out and see why there are discrepancies between WP
versions as user-agents.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39769#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list