Changeset 30948 for branches/4.1/src/wp-admin/includes/plugin-install.php
- Timestamp:
- 12/16/2014 11:23:17 PM (11 years ago)
- Location:
- branches/4.1
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/plugin-install.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1
-
branches/4.1/src/wp-admin/includes/plugin-install.php
r30898 r30948 29 29 function plugins_api($action, $args = null) { 30 30 31 if ( is_array($args) ) 32 $args = (object)$args; 33 34 if ( !isset($args->per_page) ) 31 if ( is_array( $args ) ) { 32 $args = (object) $args; 33 } 34 35 if ( ! isset( $args->per_page ) ) { 35 36 $args->per_page = 24; 37 } 38 39 if ( ! isset( $args->locale ) ) { 40 $args->locale = get_locale(); 41 } 36 42 37 43 /**
Note: See TracChangeset
for help on using the changeset viewer.