[wp-trac] [WordPress Trac] #63283: Bug in version check returned values from api.wordpress.org
WordPress Trac
noreply at wordpress.org
Tue Apr 15 11:29:13 UTC 2025
#63283: Bug in version check returned values from api.wordpress.org
--------------------------+-----------------------------
Reporter: Nosoft | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.7.2
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
There is a bug that is returned from api.wordpress.org/core/version-check/
called from wp-includes/update.php function wp_version_check.
Call there return JSON with:
"packages":{"full":"https:\/\/downloads.wordpress.org\/release\/bg_BG\/wordpress-6.7.2.zip","no_content":false,"new_bundled":false,"partial":false,"rollback":false}
But in code is:
array_map( 'esc_url', $offer['packages'] ),
Function esc_url use in others (like ltrim), that not allow to receive
boolean value - must be string.
Returned value must be changed like:
"packages":{"full":"https:\/\/downloads.wordpress.org\/release\/bg_BG\/wordpress-6.7.2.zip","no_content":"","new_bundled":"","partial":"","rollback":""}
Bug is in: api.wordpress.org
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63283>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list