Opened 11 years ago

Closed 11 years ago

Last modified 14 months ago

#211 closed defect (bug) (invalid)

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

Reported by: knutsp's profile knutsp Owned by:
Milestone: Priority: normal
Component: API Keywords: has-patch


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 11 years ago.
Dump from credts.php

Download all attachments as: .zip

Change History (5)

#1 @nacin
11 years ago

I'm not seeing this... It shows 3.7 for me.

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

#2 @knutsp
11 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', "$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

11 years ago

Dump from credts.php

#3 @knutsp
11 years ago

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


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

Kinda defeats the point of beta testing.

This ticket was mentioned in PR #215 on WordPress/wporg-main-2022 by @adamwood.

14 months ago

  • Keywords has-patch added

The export content parser isn't handling nested list elements at present. This PR adds those that have been dropped from the About -> Roadmap page, as a temporary measure.

Fixes #211

Note: See TracTickets for help on using tickets.