Opened 9 years ago
Closed 4 years ago
#35910 closed enhancement (fixed)
Allow wp_credits() to accept custom wordpress versions and locals
Reported by: | ramiy | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | has-patch |
Focuses: | administration | Cc: |
Description
Introduced in wordpress 3.2, wp_credits()
retrieve the contributor credits from http://api.wordpress.org/. This function doesn't accept any parameter, it retrieves data only for the current wordpress version and local.
As a plugin developer, if I want to get wordpress credits information for older versions or different locals, I can't do that using wp_credits()
.
But It can be easily fixed. The function just need to accept the version and the local as parameters. For backwards compatibility, if the parameters are empty, we will use the current version and local.
See the attached patch.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Related: #meta577