WordPress.org

Making WordPress.org

Opened 6 years ago

Closed 6 years ago

#211 closed defect (invalid)

Credits API: (groups - props - placeholders) wrong value for version

Reported by: knutsp Owned by:
Milestone: Priority: normal
Component: API Keywords:
Cc:

Description

On WordPress 3.7-RC1 credits.php the title of the fourth subheading becomes "Core Contributors to WordPress 3.8". Looking at the API response the title is given as "Core Contributors to WordPress %s" and the "placeholder" value is "3.8".

I don't know why the API is returning a, or a future, WordPress version or last milestone (?) in this case, but the result is misleading.

Attachments (1)

credits-api.txt (9.6 KB) - added by knutsp 6 years ago.
Dump from credts.php

Download all attachments as: .zip

Change History (4)

#1 @nacin
6 years ago

I'm not seeing this... It shows 3.7 for me. http://api.wordpress.org/core/credits/1.1/?version=3.7-RC1

Trunk is still 3.7-RC1, we haven't bumped it to 3.8 yet.

#2 @knutsp
6 years ago

I added a few lines to credits.php just after wp_remote_get. I also commented out the line with get_site_transient

file_put_contents( '/home/x/public_html/credits-api.txt', "http://api.wordpress.org/core/credits/1.1/?version=$wp_version&locale=$locale" );
file_put_contents( '/home/x/public_html/credits-api.txt', PHP_EOL, FILE_APPEND );
file_put_contents( '/home/x/public_html/credits-api.txt', $response, FILE_APPEND );

PHP 5.4.19
WordPress Multisite
All of cURL, fsockopen and streams available according to "Core Control"

Se file credits-api.txt

@knutsp
6 years ago

Dump from credts.php

#3 @knutsp
6 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Solved.

It's the WordPress Beta Tester Plugin that does mangle_wp_version()through filter pre_http_request.

Kinda defeats the point of beta testing.

Note: See TracTickets for help on using tickets.