Changes between Initial Version and Version 1 of Ticket #63283
- Timestamp:
- 04/15/2025 12:52:26 PM (7 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #63283
-
Property
Component
changed from
GeneraltoUpgrade/Install
-
Property
Component
changed from
-
Ticket #63283 – Description
initial v1 1 1 There is a bug that is returned from api.wordpress.org/core/version-check/ called from wp-includes/update.php function wp_version_check. 2 2 Call there return JSON with: 3 "packages":{"full":"https:\/\/downloads.wordpress.org\/release\/bg_BG\/wordpress-6.7.2.zip","no_content":false,"new_bundled":false,"partial":false,"rollback":false} 3 `"packages":{"full":"https:\/\/downloads.wordpress.org\/release\/bg_BG\/wordpress-6.7.2.zip","no_content":false,"new_bundled":false,"partial":false,"rollback":false}` 4 4 But in code is: 5 array_map( 'esc_url', $offer['packages'] ), 5 `array_map( 'esc_url', $offer['packages'] ),` 6 6 Function esc_url use in others (like ltrim), that not allow to receive boolean value - must be string. 7 7 Returned value must be changed like: 8 "packages":{"full":"https:\/\/downloads.wordpress.org\/release\/bg_BG\/wordpress-6.7.2.zip","no_content":"","new_bundled":"","partial":"","rollback":""} 8 `"packages":{"full":"https:\/\/downloads.wordpress.org\/release\/bg_BG\/wordpress-6.7.2.zip","no_content":"","new_bundled":"","partial":"","rollback":""}` 9 9 Bug is in: api.wordpress.org