#211 closed defect (bug) (invalid)
Credits API: (groups - props - placeholders) wrong value for version
Reported by: | knutsp | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | API | Keywords: | has-patch |
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)
Change History (5)
#2
@
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', "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
#3
@
11 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.
This ticket was mentioned in PR #215 on WordPress/wporg-main-2022 by @adamwood.
21 months ago
#4
- 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
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.