Changeset 41289 for trunk/src/wp-admin/includes/plugin-install.php
- Timestamp:
- 08/22/2017 11:51:11 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin-install.php
r40633 r41289 20 20 * 21 21 * The second filter, {@see 'plugins_api'}, allows a plugin to override the WordPress.org 22 * Plugin Install API entirely. If `$action` is 'query_plugins' or 'plugin_information',22 * Plugin Installation API entirely. If `$action` is 'query_plugins' or 'plugin_information', 23 23 * an object MUST be passed. If `$action` is 'hot_tags' or 'hot_categories', an array MUST 24 24 * be passed. … … 90 90 * @type bool $banners Whether to return the banner images links. Default false. 91 91 * @type bool $icons Whether to return the icon links. Default false. 92 * @type bool $active_installs Whether to return the number of active install s. Default false.92 * @type bool $active_installs Whether to return the number of active installations. Default false. 93 93 * @type bool $group Whether to return the assigned group. Default false. 94 94 * @type bool $contributors Whether to return the list of contributors. Default false. … … 114 114 115 115 /** 116 * Filters the WordPress.org Plugin Install API arguments.116 * Filters the WordPress.org Plugin Installation API arguments. 117 117 * 118 118 * Important: An object MUST be returned to this filter. … … 121 121 * 122 122 * @param object $args Plugin API arguments. 123 * @param string $action The type of information being requested from the Plugin Install API.123 * @param string $action The type of information being requested from the Plugin Installation API. 124 124 */ 125 125 $args = apply_filters( 'plugins_api_args', $args, $action ); 126 126 127 127 /** 128 * Filters the response for the current WordPress.org Plugin Install API request.128 * Filters the response for the current WordPress.org Plugin Installation API request. 129 129 * 130 130 * Passing a non-false value will effectively short-circuit the WordPress.org API request. … … 136 136 * 137 137 * @param false|object|array $result The result object or array. Default false. 138 * @param string $action The type of information being requested from the Plugin Install API.138 * @param string $action The type of information being requested from the Plugin Installation API. 139 139 * @param object $args Plugin API arguments. 140 140 */ … … 194 194 195 195 /** 196 * Filters the Plugin Install API response results.196 * Filters the Plugin Installation API response results. 197 197 * 198 198 * @since 2.7.0 199 199 * 200 200 * @param object|WP_Error $res Response object or WP_Error. 201 * @param string $action The type of information being requested from the Plugin Install API.201 * @param string $action The type of information being requested from the Plugin Installation API. 202 202 * @param object $args Plugin API arguments. 203 203 */ … … 516 516 } 517 517 518 iframe_header( __( 'Plugin Install ' ) );518 iframe_header( __( 'Plugin Installation' ) ); 519 519 520 520 $_with_banner = ''; … … 588 588 <li><strong><?php _e( 'Compatible up to:' ); ?></strong> <?php echo $api->tested; ?></li> 589 589 <?php } if ( isset( $api->active_installs ) ) { ?> 590 <li><strong><?php _e( 'Active Install s:' ); ?></strong> <?php590 <li><strong><?php _e( 'Active Installations:' ); ?></strong> <?php 591 591 if ( $api->active_installs >= 1000000 ) { 592 _ex( '1+ Million', 'Active plugin install s' );592 _ex( '1+ Million', 'Active plugin installations' ); 593 593 } elseif ( 0 == $api->active_installs ) { 594 _ex( 'Less Than 10', 'Active plugin install s' );594 _ex( 'Less Than 10', 'Active plugin installations' ); 595 595 } else { 596 596 echo number_format_i18n( $api->active_installs ) . '+';
Note: See TracChangeset
for help on using the changeset viewer.