mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Pass locale to wordpress.org theme/plugin API.
In the future this will be used to return localized plugin/theme info. see #30735. git-svn-id: https://develop.svn.wordpress.org/trunk@30944 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -28,11 +28,17 @@
|
||||
*/
|
||||
function plugins_api($action, $args = null) {
|
||||
|
||||
if ( is_array($args) )
|
||||
$args = (object)$args;
|
||||
if ( is_array( $args ) ) {
|
||||
$args = (object) $args;
|
||||
}
|
||||
|
||||
if ( !isset($args->per_page) )
|
||||
if ( ! isset( $args->per_page ) ) {
|
||||
$args->per_page = 24;
|
||||
}
|
||||
|
||||
if ( ! isset( $args->locale ) ) {
|
||||
$args->locale = get_locale();
|
||||
}
|
||||
|
||||
/**
|
||||
* Override the Plugin Install API arguments.
|
||||
|
||||
Reference in New Issue
Block a user