[wp-trac] [WordPress Trac] #35910: Allow wp_credits() to accept custom wordpress versions and locals
WordPress Trac
noreply at wordpress.org
Tue Feb 23 01:03:36 UTC 2016
#35910: Allow wp_credits() to accept custom wordpress versions and locals
----------------------------+-----------------------------
Reporter: ramiy | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35910>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list