WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/22/2017 11:51:11 AM (3 years ago)
Author:
johnbillion
Message:

General: Improve terminology used when referring to installations of WordPress and its extensions.

"Install" is not a noun, and while it might be acceptable to use the verb as a noun, it is not correct. Using the correct
noun, "installation", increases clarity, especially for non-native English speakers.

This change fixes the usage in user-facing text and in developer documentation.

Fixes #41620

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin-install.php

    r40633 r41289  
    2020 *
    2121 * 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',
    2323 * an object MUST be passed. If `$action` is 'hot_tags' or 'hot_categories', an array MUST
    2424 * be passed.
     
    9090 *         @type bool $banners           Whether to return the banner images links. Default false.
    9191 *         @type bool $icons             Whether to return the icon links. Default false.
    92  *         @type bool $active_installs   Whether to return the number of active installs. Default false.
     92 *         @type bool $active_installs   Whether to return the number of active installations. Default false.
    9393 *         @type bool $group             Whether to return the assigned group. Default false.
    9494 *         @type bool $contributors      Whether to return the list of contributors. Default false.
     
    114114
    115115    /**
    116      * Filters the WordPress.org Plugin Install API arguments.
     116     * Filters the WordPress.org Plugin Installation API arguments.
    117117     *
    118118     * Important: An object MUST be returned to this filter.
     
    121121     *
    122122     * @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.
    124124     */
    125125    $args = apply_filters( 'plugins_api_args', $args, $action );
    126126
    127127    /**
    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.
    129129     *
    130130     * Passing a non-false value will effectively short-circuit the WordPress.org API request.
     
    136136     *
    137137     * @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.
    139139     * @param object             $args   Plugin API arguments.
    140140     */
     
    194194
    195195    /**
    196      * Filters the Plugin Install API response results.
     196     * Filters the Plugin Installation API response results.
    197197     *
    198198     * @since 2.7.0
    199199     *
    200200     * @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.
    202202     * @param object          $args   Plugin API arguments.
    203203     */
     
    516516    }
    517517
    518     iframe_header( __( 'Plugin Install' ) );
     518    iframe_header( __( 'Plugin Installation' ) );
    519519
    520520    $_with_banner = '';
     
    588588                <li><strong><?php _e( 'Compatible up to:' ); ?></strong> <?php echo $api->tested; ?></li>
    589589            <?php } if ( isset( $api->active_installs ) ) { ?>
    590                 <li><strong><?php _e( 'Active Installs:' ); ?></strong> <?php
     590                <li><strong><?php _e( 'Active Installations:' ); ?></strong> <?php
    591591                    if ( $api->active_installs >= 1000000 ) {
    592                         _ex( '1+ Million', 'Active plugin installs' );
     592                        _ex( '1+ Million', 'Active plugin installations' );
    593593                    } elseif ( 0 == $api->active_installs ) {
    594                         _ex( 'Less Than 10', 'Active plugin installs' );
     594                        _ex( 'Less Than 10', 'Active plugin installations' );
    595595                    } else {
    596596                        echo number_format_i18n( $api->active_installs ) . '+';
Note: See TracChangeset for help on using the changeset viewer.