WordPress.org

Make WordPress Core

Ticket #41620: 41620.diff

File 41620.diff, 61.9 KB (added by johnbillion, 2 years ago)
  • src/wp-admin/includes/ajax-actions.php

    diff --git src/wp-admin/includes/ajax-actions.php src/wp-admin/includes/ajax-actions.php
    index 33276d26fa..d19d02522a 100644
    function wp_ajax_install_theme() { 
    34563456
    34573457        /*
    34583458         * See WP_Theme_Install_List_Table::_get_theme_status() if we wanted to check
    3459          * on post-install status.
     3459         * on post-installation status.
    34603460         */
    34613461        wp_send_json_success( $status );
    34623462}
    function wp_ajax_install_plugin() { 
    37013701        $install_status = install_plugin_install_status( $api );
    37023702        $pagenow = isset( $_POST['pagenow'] ) ? sanitize_key( $_POST['pagenow'] ) : '';
    37033703
    3704         // If install request is coming from import page, do not return network activation link.
     3704        // If installation request is coming from import page, do not return network activation link.
    37053705        $plugins_url = ( 'import' === $pagenow ) ? admin_url( 'plugins.php' ) : network_admin_url( 'plugins.php' );
    37063706
    37073707        if ( current_user_can( 'activate_plugins' ) && is_plugin_inactive( $install_status['file'] ) ) {
  • src/wp-admin/includes/class-core-upgrader.php

    diff --git src/wp-admin/includes/class-core-upgrader.php src/wp-admin/includes/class-core-upgrader.php
    index ebfc1d657e..dfd6404616 100644
    class Core_Upgrader extends WP_Upgrader { 
    9595
    9696                /*
    9797                 * If partial update is returned from the API, use that, unless we're doing
    98                  * a reinstall. If we cross the new_bundled version number, then use
     98                 * a reinstallation. If we cross the new_bundled version number, then use
    9999                 * the new_bundled zip. Don't though if the constant is set to skip bundled items.
    100100                 * If the API returns a no_content zip, go with it. Finally, default to the full zip.
    101101                 */
  • src/wp-admin/includes/class-file-upload-upgrader.php

    diff --git src/wp-admin/includes/class-file-upload-upgrader.php src/wp-admin/includes/class-file-upload-upgrader.php
    index 4584122a23..a182b62ccd 100644
    class File_Upload_Upgrader { 
    7979                        // Save the data.
    8080                        $this->id = wp_insert_attachment( $object, $file['file'] );
    8181
    82                         // Schedule a cleanup for 2 hours from now in case of failed install.
     82                        // Schedule a cleanup for 2 hours from now in case of failed installation.
    8383                        wp_schedule_single_event( time() + 2 * HOUR_IN_SECONDS, 'upgrader_scheduled_cleanup', array( $this->id ) );
    8484
    8585                } elseif ( is_numeric( $_GET[$urlholder] ) ) {
  • src/wp-admin/includes/class-language-pack-upgrader.php

    diff --git src/wp-admin/includes/class-language-pack-upgrader.php src/wp-admin/includes/class-language-pack-upgrader.php
    index e3ae953132..ee98cf79db 100644
    class Language_Pack_Upgrader extends WP_Upgrader { 
    2828        public $result;
    2929
    3030        /**
    31          * Whether a bulk upgrade/install is being performed.
     31         * Whether a bulk upgrade/installation is being performed.
    3232         *
    3333         * @since 3.7.0
    3434         * @var bool $bulk
    class Language_Pack_Upgrader extends WP_Upgrader { 
    6060                }
    6161
    6262                /*
    63                  * Avoid messing with VCS installs, at least for now.
     63                 * Avoid messing with VCS installations, at least for now.
    6464                 * Noted: this is not the ideal way to accomplish this.
    6565                 */
    6666                $check_vcs = new WP_Automatic_Updater;
  • src/wp-admin/includes/class-plugin-upgrader.php

    diff --git src/wp-admin/includes/class-plugin-upgrader.php src/wp-admin/includes/class-plugin-upgrader.php
    index f66f202de4..969a5b4ff7 100644
    class Plugin_Upgrader extends WP_Upgrader { 
    3131        public $result;
    3232
    3333        /**
    34          * Whether a bulk upgrade/install is being performed.
     34         * Whether a bulk upgrade/installation is being performed.
    3535         *
    3636         * @since 2.9.0
    3737         * @var bool $bulk
    class Plugin_Upgrader extends WP_Upgrader { 
    5656        }
    5757
    5858        /**
    59          * Initialize the install strings.
     59         * Initialize the installation strings.
    6060         *
    6161         * @since 2.8.0
    6262         */
    6363        public function install_strings() {
    64                 $this->strings['no_package'] = __('Install package not available.');
    65                 $this->strings['downloading_package'] = __('Downloading install package from <span class="code">%s</span>&#8230;');
     64                $this->strings['no_package'] = __('Installation package not available.');
     65                $this->strings['downloading_package'] = __('Downloading installation package from <span class="code">%s</span>&#8230;');
    6666                $this->strings['unpack_package'] = __('Unpacking the package&#8230;');
    6767                $this->strings['installing_package'] = __('Installing the plugin&#8230;');
    6868                $this->strings['no_files'] = __('The plugin contains no files.');
    69                 $this->strings['process_failed'] = __('Plugin install failed.');
     69                $this->strings['process_failed'] = __('Plugin installation failed.');
    7070                $this->strings['process_success'] = __('Plugin installed successfully.');
    7171        }
    7272
    class Plugin_Upgrader extends WP_Upgrader { 
    8383         *     @type bool $clear_update_cache Whether to clear the plugin updates cache if successful.
    8484         *                                    Default true.
    8585         * }
    86          * @return bool|WP_Error True if the install was successful, false or a WP_Error otherwise.
     86         * @return bool|WP_Error True if the installation was successful, false or a WP_Error otherwise.
    8787         */
    8888        public function install( $package, $args = array() ) {
    8989
  • src/wp-admin/includes/class-theme-upgrader.php

    diff --git src/wp-admin/includes/class-theme-upgrader.php src/wp-admin/includes/class-theme-upgrader.php
    index 11e8f2de9a..6515698052 100644
    class Theme_Upgrader extends WP_Upgrader { 
    5454        }
    5555
    5656        /**
    57          * Initialize the install strings.
     57         * Initialize the installation strings.
    5858         *
    5959         * @since 2.8.0
    6060         */
    6161        public function install_strings() {
    62                 $this->strings['no_package'] = __('Install package not available.');
    63                 $this->strings['downloading_package'] = __('Downloading install package from <span class="code">%s</span>&#8230;');
     62                $this->strings['no_package'] = __('Installation package not available.');
     63                $this->strings['downloading_package'] = __('Downloading installation package from <span class="code">%s</span>&#8230;');
    6464                $this->strings['unpack_package'] = __('Unpacking the package&#8230;');
    6565                $this->strings['installing_package'] = __('Installing the theme&#8230;');
    6666                $this->strings['no_files'] = __('The theme contains no files.');
    67                 $this->strings['process_failed'] = __('Theme install failed.');
     67                $this->strings['process_failed'] = __('Theme installation failed.');
    6868                $this->strings['process_success'] = __('Theme installed successfully.');
    6969                /* translators: 1: theme name, 2: version */
    7070                $this->strings['process_success_specific'] = __('Successfully installed the theme <strong>%1$s %2$s</strong>.');
    class Theme_Upgrader extends WP_Upgrader { 
    110110
    111111                if ( ! $api || is_wp_error($api) ) {
    112112                        $this->skin->feedback( 'parent_theme_not_found', $theme_info->get('Template') );
    113                         // Don't show activate or preview actions after install
     113                        // Don't show activate or preview actions after installation
    114114                        add_filter('install_theme_complete_actions', array($this, 'hide_activate_preview_actions') );
    115115                        return $install_result;
    116116                }
    class Theme_Upgrader extends WP_Upgrader { 
    180180         *                                    Default true.
    181181         * }
    182182         *
    183          * @return bool|WP_Error True if the install was successful, false or a WP_Error object otherwise.
     183         * @return bool|WP_Error True if the installation was successful, false or a WP_Error object otherwise.
    184184         */
    185185        public function install( $package, $args = array() ) {
    186186
  • src/wp-admin/includes/class-wp-automatic-updater.php

    diff --git src/wp-admin/includes/class-wp-automatic-updater.php src/wp-admin/includes/class-wp-automatic-updater.php
    index 0e586473d7..fbde7320d0 100644
    class WP_Automatic_Updater { 
    443443                        wp_update_plugins(); // Check for Plugin updates
    444444                }
    445445
    446                 // Send debugging email to all development installs.
     446                // Send debugging email to admin for all development installations.
    447447                if ( ! empty( $this->update_results ) ) {
    448448                        $development_version = false !== strpos( get_bloginfo( 'version' ), '-' );
    449449
  • src/wp-admin/includes/class-wp-ms-sites-list-table.php

    diff --git src/wp-admin/includes/class-wp-ms-sites-list-table.php src/wp-admin/includes/class-wp-ms-sites-list-table.php
    index 14dbd16378..f639b36ecf 100644
    class WP_MS_Sites_List_Table extends WP_List_Table { 
    551551                 * @param array  $actions  An array of action links to be displayed.
    552552                 * @param int    $blog_id  The site ID.
    553553                 * @param string $blogname Site path, formatted depending on whether it is a sub-domain
    554                  *                         or subdirectory multisite install.
     554                 *                         or subdirectory multisite installation.
    555555                 */
    556556                $actions = apply_filters( 'manage_sites_action_links', array_filter( $actions ), $blog['blog_id'], $blogname );
    557557                return $this->row_actions( $actions );
  • src/wp-admin/includes/class-wp-plugin-install-list-table.php

    diff --git src/wp-admin/includes/class-wp-plugin-install-list-table.php src/wp-admin/includes/class-wp-plugin-install-list-table.php
    index 99dd1c74cf..bf6cf3d71b 100644
    class WP_Plugin_Install_List_Table extends WP_List_Table { 
    559559                                <div class="column-downloaded">
    560560                                        <?php
    561561                                        if ( $plugin['active_installs'] >= 1000000 ) {
    562                                                 $active_installs_text = _x( '1+ Million', 'Active plugin installs' );
     562                                                $active_installs_text = _x( '1+ Million', 'Active plugin installations' );
    563563                                        } elseif ( 0 == $plugin['active_installs'] ) {
    564                                                 $active_installs_text = _x( 'Less Than 10', 'Active plugin installs' );
     564                                                $active_installs_text = _x( 'Less Than 10', 'Active plugin installations' );
    565565                                        } else {
    566566                                                $active_installs_text = number_format_i18n( $plugin['active_installs'] ) . '+';
    567567                                        }
    568                                         printf( __( '%s Active Installs' ), $active_installs_text );
     568                                        printf( __( '%s Active Installations' ), $active_installs_text );
    569569                                        ?>
    570570                                </div>
    571571                                <div class="column-compatibility">
  • src/wp-admin/includes/class-wp-upgrader.php

    diff --git src/wp-admin/includes/class-wp-upgrader.php src/wp-admin/includes/class-wp-upgrader.php
    index 6ee7684c35..f7dea257ea 100644
    class WP_Upgrader { 
    7979         * @var WP_Error|array $result {
    8080         *      @type string $source             The full path to the source the files were installed from.
    8181         *      @type string $source_files       List of all the files in the source directory.
    82          *      @type string $destination        The full path to the install destination folder.
     82         *      @type string $destination        The full path to the installation destination folder.
    8383         *      @type string $destination_name   The name of the destination folder, or empty if `$destination`
    8484         *                                       and `$local_destination` are the same.
    8585         *      @type string $local_destination  The full local path to the destination folder. This is usually
    class WP_Upgrader { 
    570570                $this->result = compact( 'source', 'source_files', 'destination', 'destination_name', 'local_destination', 'remote_destination', 'clear_destination' );
    571571
    572572                /**
    573                  * Filters the install response after the installation has finished.
     573                 * Filters the installation response after the installation has finished.
    574574                 *
    575575                 * @since 2.8.0
    576576                 *
    577                  * @param bool  $response   Install response.
     577                 * @param bool  $response   Installation response.
    578578                 * @param array $hook_extra Extra arguments passed to hooked filters.
    579579                 * @param array $result     Installation result data.
    580580                 */
    class WP_Upgrader { 
    590590        }
    591591
    592592        /**
    593          * Run an upgrade/install.
     593         * Run an upgrade/installation.
    594594         *
    595595         * Attempts to download the package (if it is not a local file), unpack it, and
    596596         * install it in the destination folder.
    class WP_Upgrader { 
    612612         *     @type bool   $abort_if_destination_exists Whether to abort the installation if the destination
    613613         *                                               folder already exists. When true, `$clear_destination`
    614614         *                                               should be false. Default true.
    615          *     @type bool   $is_multi                    Whether this run is one of multiple upgrade/install
     615         *     @type bool   $is_multi                    Whether this run is one of multiple upgrade/installation
    616616         *                                               actions being performed in bulk. When true, the skin
    617617         *                                               WP_Upgrader::header() and WP_Upgrader::footer()
    618618         *                                               aren't called. Default false.
    class WP_Upgrader { 
    735735                        $this->skin->error($result);
    736736                        $this->skin->feedback('process_failed');
    737737                } else {
    738                         // Install succeeded.
     738                        // Installation succeeded.
    739739                        $this->skin->feedback('process_success');
    740740                }
    741741
  • src/wp-admin/includes/ms.php

    diff --git src/wp-admin/includes/ms.php src/wp-admin/includes/ms.php
    index e746982e41..7de1adc0a3 100644
    function site_admin_notice() { 
    705705/**
    706706 * Avoids a collision between a site slug and a permalink slug.
    707707 *
    708  * In a subdirectory install this will make sure that a site and a post do not use the
     708 * In a subdirectory installation this will make sure that a site and a post do not use the
    709709 * same subdirectory by checking for a site with the same name as a new post.
    710710 *
    711711 * @since 3.0.0
  • src/wp-admin/includes/network.php

    diff --git src/wp-admin/includes/network.php src/wp-admin/includes/network.php
    index fef6b66850..1411d6fcf0 100644
    function network_domain_check() { 
    2727}
    2828
    2929/**
    30  * Allow subdomain install
     30 * Allow subdomain installation
    3131 *
    3232 * @since 3.0.0
    33  * @return bool Whether subdomain install is allowed
     33 * @return bool Whether subdomain installation is allowed
    3434 */
    3535function allow_subdomain_install() {
    3636        $domain = preg_replace( '|https?://([^/]+)|', '$1', get_option( 'home' ) );
    function allow_subdomain_install() { 
    4141}
    4242
    4343/**
    44  * Allow subdirectory install.
     44 * Allow subdirectory installation.
    4545 *
    4646 * @since 3.0.0
    4747 *
    4848 * @global wpdb $wpdb WordPress database abstraction object.
    4949 *
    50  * @return bool Whether subdirectory install is allowed
     50 * @return bool Whether subdirectory installation is allowed
    5151 */
    5252function allow_subdirectory_install() {
    5353        global $wpdb;
    5454        /**
    55          * Filters whether to enable the subdirectory install feature in Multisite.
     55         * Filters whether to enable the subdirectory installation feature in Multisite.
    5656         *
    5757         * @since 3.0.0
    5858         *
    59          * @param bool $allow Whether to enable the subdirectory install feature in Multisite. Default is false.
     59         * @param bool $allow Whether to enable the subdirectory installation feature in Multisite. Default is false.
    6060         */
    6161        if ( apply_filters( 'allow_subdirectory_install', false ) )
    6262                return true;
    function network_step1( $errors = false ) { 
    257257                <table class="form-table">
    258258                <?php if ( 'localhost' == $hostname ) : ?>
    259259                        <tr>
    260                                 <th scope="row"><?php esc_html_e( 'Sub-directory Install' ); ?></th>
     260                                <th scope="row"><?php esc_html_e( 'Sub-directory Installation' ); ?></th>
    261261                                <td><?php
    262262                                        printf(
    263263                                                /* translators: 1: localhost 2: localhost.localdomain */
    function network_step1( $errors = false ) { 
    267267                                        );
    268268                                        // Uh oh:
    269269                                        if ( !allow_subdirectory_install() )
    270                                                 echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';
     270                                                echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory installation will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';
    271271                                ?></td>
    272272                        </tr>
    273273                <?php elseif ( !allow_subdomain_install() ) : ?>
    274274                        <tr>
    275                                 <th scope="row"><?php esc_html_e( 'Sub-directory Install' ); ?></th>
     275                                <th scope="row"><?php esc_html_e( 'Sub-directory Installation' ); ?></th>
    276276                                <td><?php
    277                                         _e( 'Because your install is in a directory, the sites in your WordPress network must use sub-directories.' );
     277                                        _e( 'Because your installation is in a directory, the sites in your WordPress network must use sub-directories.' );
    278278                                        // Uh oh:
    279279                                        if ( !allow_subdirectory_install() )
    280                                                 echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';
     280                                                echo ' <strong>' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory installation will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';
    281281                                ?></td>
    282282                        </tr>
    283283                <?php elseif ( !allow_subdirectory_install() ) : ?>
    284284                        <tr>
    285                                 <th scope="row"><?php esc_html_e( 'Sub-domain Install' ); ?></th>
    286                                 <td><?php _e( 'Because your install is not new, the sites in your WordPress network must use sub-domains.' );
    287                                         echo ' <strong>' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';
     285                                <th scope="row"><?php esc_html_e( 'Sub-domain Installation' ); ?></th>
     286                                <td><?php _e( 'Because your installation is not new, the sites in your WordPress network must use sub-domains.' );
     287                                        echo ' <strong>' . __( 'The main site in a sub-directory installation will need to use a modified permalink structure, potentially breaking existing links.' ) . '</strong>';
    288288                                ?></td>
    289289                        </tr>
    290290                <?php endif; ?>
  • src/wp-admin/includes/plugin-install.php

    diff --git src/wp-admin/includes/plugin-install.php src/wp-admin/includes/plugin-install.php
    index 3314a24c90..6b71832a09 100644
     
    1919 * an object is returned.
    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.
    2525 *
     
    8989 *         @type bool $reviews           Whether to return the plugin reviews. Default false.
    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.
    9595 *     }
    function plugins_api( $action, $args = array() ) { 
    113113        }
    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.
    119119         *
    120120         * @since 2.7.0
    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.
    131131         *
    function plugins_api( $action, $args = array() ) { 
    135135         * @since 2.7.0
    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         */
    141141        $res = apply_filters( 'plugins_api', false, $action, $args );
    function plugins_api( $action, $args = array() ) { 
    193193        }
    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         */
    204204        return apply_filters( 'plugins_api_result', $res, $action, $args );
    function install_plugin_information() { 
    515515                $section = reset( $section_titles );
    516516        }
    517517
    518         iframe_header( __( 'Plugin Install' ) );
     518        iframe_header( __( 'Plugin Installation' ) );
    519519
    520520        $_with_banner = '';
    521521
    function install_plugin_information() { 
    587587                        <?php } if ( ! empty( $api->tested ) ) { ?>
    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 ) . '+';
    597597                                        }
  • src/wp-admin/includes/plugin.php

    diff --git src/wp-admin/includes/plugin.php src/wp-admin/includes/plugin.php
    index 1c328f363c..7d804e1c66 100644
    function _get_dropins() { 
    419419                'advanced-cache.php' => array( __( 'Advanced caching plugin.'       ), 'WP_CACHE' ), // WP_CACHE
    420420                'db.php'             => array( __( 'Custom database class.'         ), true ), // auto on load
    421421                'db-error.php'       => array( __( 'Custom database error message.' ), true ), // auto on error
    422                 'install.php'        => array( __( 'Custom install script.'         ), true ), // auto on install
     422                'install.php'        => array( __( 'Custom installation script.'    ), true ), // auto on installation
    423423                'maintenance.php'    => array( __( 'Custom maintenance message.'    ), true ), // auto on maintenance
    424424                'object-cache.php'   => array( __( 'External object cache.'         ), true ), // auto on load
    425425        );
  • src/wp-admin/includes/schema.php

    diff --git src/wp-admin/includes/schema.php src/wp-admin/includes/schema.php
    index 64ec6b76fb..d5ba04c95b 100644
    endif; 
    890890 * @param string $email             Email address for the network administrator.
    891891 * @param string $site_name         The name of the network.
    892892 * @param string $path              Optional. The path to append to the network's domain name. Default '/'.
    893  * @param bool   $subdomain_install Optional. Whether the network is a subdomain install or a subdirectory install.
    894  *                                  Default false, meaning the network is a subdirectory install.
    895  * @return bool|WP_Error True on success, or WP_Error on warning (with the install otherwise successful,
     893 * @param bool   $subdomain_install Optional. Whether the network is a subdomain installation or a subdirectory installation.
     894 *                                  Default false, meaning the network is a subdirectory installation.
     895 * @return bool|WP_Error True on success, or WP_Error on warning (with the installation otherwise successful,
    896896 *                       so the error code must be checked) or failure.
    897897 */
    898898function populate_network( $network_id = 1, $domain = '', $email = '', $site_name = '', $path = '/', $subdomain_install = false ) {
  • src/wp-admin/includes/theme-install.php

    diff --git src/wp-admin/includes/theme-install.php src/wp-admin/includes/theme-install.php
    index 31ce5f7971..86bd37e100 100644
     
    11<?php
    22/**
    3  * WordPress Theme Install Administration API
     3 * WordPress Theme Installation Administration API
    44 *
    55 * @package WordPress
    66 * @subpackage Administration
    function install_theme_information() { 
    202202        if ( is_wp_error( $theme ) )
    203203                wp_die( $theme );
    204204
    205         iframe_header( __('Theme Install') );
     205        iframe_header( __('Theme Installation') );
    206206        if ( ! isset( $wp_list_table ) ) {
    207207                $wp_list_table = _get_list_table('WP_Theme_Install_List_Table');
    208208        }
  • src/wp-admin/includes/translation-install.php

    diff --git src/wp-admin/includes/translation-install.php src/wp-admin/includes/translation-install.php
    index eafb8302c7..2ad4c79f4b 100644
     
    11<?php
    22/**
    3  * WordPress Translation Install Administration API
     3 * WordPress Translation Installation Administration API
    44 *
    55 * @package WordPress
    66 * @subpackage Administration
    function translations_api( $type, $args = null ) { 
    2424        }
    2525
    2626        /**
    27          * Allows a plugin to override the WordPress.org Translation Install API entirely.
     27         * Allows a plugin to override the WordPress.org Translation Installation API entirely.
    2828         *
    2929         * @since 4.0.0
    3030         *
    function translations_api( $type, $args = null ) { 
    9393        }
    9494
    9595        /**
    96          * Filters the Translation Install API response results.
     96         * Filters the Translation Installation API response results.
    9797         *
    9898         * @since 4.0.0
    9999         *
  • src/wp-admin/includes/update-core.php

    diff --git src/wp-admin/includes/update-core.php src/wp-admin/includes/update-core.php
    index badd5832a1..002b353e2b 100644
    function _copy_dir($from, $to, $skip_list = array() ) { 
    11971197/**
    11981198 * Redirect to the About WordPress page after a successful upgrade.
    11991199 *
    1200  * This function is only needed when the existing install is older than 3.4.0.
     1200 * This function is only needed when the existing installation is older than 3.4.0.
    12011201 *
    12021202 * @since 3.3.0
    12031203 *
  • src/wp-admin/includes/update.php

    diff --git src/wp-admin/includes/update.php src/wp-admin/includes/update.php
    index 9ff810d1a8..74863d5ca9 100644
    function get_core_updates( $options = array() ) { 
    6363/**
    6464 * Gets the best available (and enabled) Auto-Update for WordPress Core.
    6565 *
    66  * If there's 1.2.3 and 1.3 on offer, it'll choose 1.3 if the install allows it, else, 1.2.3
     66 * If there's 1.2.3 and 1.3 on offer, it'll choose 1.3 if the installation allows it, else, 1.2.3
    6767 *
    6868 * @since 3.7.0
    6969 *
    function maintenance_nag() { 
    596596                $failed = get_site_option( 'auto_core_update_failed' );
    597597                /*
    598598                 * If an update failed critically, we may have copied over version.php but not other files.
    599                  * In that case, if the install claims we're running the version we attempted, nag.
     599                 * In that case, if the installation claims we're running the version we attempted, nag.
    600600                 * This is serious enough to err on the side of nagging.
    601601                 *
    602602                 * If we simply failed to update before we tried to copy any files, then assume things are
  • src/wp-admin/includes/upgrade.php

    diff --git src/wp-admin/includes/upgrade.php src/wp-admin/includes/upgrade.php
    index f383b3dc60..4f60cbd56f 100644
     
    88 * @subpackage Administration
    99 */
    1010
    11 /** Include user install customize script. */
     11/** Include user installation customization script. */
    1212if ( file_exists(WP_CONTENT_DIR . '/install.php') )
    1313        require (WP_CONTENT_DIR . '/install.php');
    1414
    function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated 
    9595
    9696        flush_rewrite_rules();
    9797
    98         wp_new_blog_notification($blog_title, $guessurl, $user_id, ($email_password ? $user_password : __('The password you chose during the install.') ) );
     98        wp_new_blog_notification($blog_title, $guessurl, $user_id, ($email_password ? $user_password : __('The password you chose during installation.') ) );
    9999
    100100        wp_cache_flush();
    101101
    As a new WordPress user, you should go to <a href=\"%s\">your dashboard</a> to d 
    285285endif;
    286286
    287287/**
    288  * Maybe enable pretty permalinks on install.
     288 * Maybe enable pretty permalinks on installation.
    289289 *
    290290 * If after enabling pretty permalinks don't work, fallback to query-string permalinks.
    291291 *
    function wp_upgrade() { 
    452452endif;
    453453
    454454/**
    455  * Functions to be called in install and upgrade scripts.
     455 * Functions to be called in installation and upgrade scripts.
    456456 *
    457457 * Contains conditional checks to determine which upgrade scripts to run,
    458458 * based on database version and WP version being updated-to.
    function get_alloptions_110() { 
    20602060}
    20612061
    20622062/**
    2063  * Utility version of get_option that is private to install/upgrade.
     2063 * Utility version of get_option that is private to installation/upgrade.
    20642064 *
    20652065 * @ignore
    20662066 * @since 1.5.1
  • src/wp-admin/install.php

    diff --git src/wp-admin/install.php src/wp-admin/install.php
    index 9a11b1820e..a24baff3b6 100644
    nocache_headers(); 
    4949$step = isset( $_GET['step'] ) ? (int) $_GET['step'] : 0;
    5050
    5151/**
    52  * Display install header.
     52 * Display installation header.
    5353 *
    5454 * @since 2.5.0
    5555 *
  • src/wp-admin/network.php

    diff --git src/wp-admin/network.php src/wp-admin/network.php
    index 027449e042..d0effdb1c5 100644
    if ( is_network_admin() ) { 
    5757}
    5858
    5959$network_help = '<p>' . __('This screen allows you to configure a network as having subdomains (<code>site1.example.com</code>) or subdirectories (<code>example.com/site1</code>). Subdomains require wildcard subdomains to be enabled in Apache and DNS records, if your host allows it.') . '</p>' .
    60         '<p>' . __('Choose subdomains or subdirectories; this can only be switched afterwards by reconfiguring your install. Fill out the network details, and click install. If this does not work, you may have to add a wildcard DNS record (for subdomains) or change to another setting in Permalinks (for subdirectories).') . '</p>' .
     60        '<p>' . __('Choose subdomains or subdirectories; this can only be switched afterwards by reconfiguring your installation. Fill out the network details, and click Install. If this does not work, you may have to add a wildcard DNS record (for subdomains) or change to another setting in Permalinks (for subdirectories).') . '</p>' .
    6161        '<p>' . __('The next screen for Network Setup will give you individually-generated lines of code to add to your wp-config.php and .htaccess files. Make sure the settings of your FTP client make files starting with a dot visible, so that you can find .htaccess; you may have to create this file if it really is not there. Make backup copies of those two files.') . '</p>' .
    6262        '<p>' . __('Add the designated lines of code to wp-config.php (just before <code>/*...stop editing...*/</code>) and <code>.htaccess</code> (replacing the existing WordPress rules).') . '</p>' .
    6363        '<p>' . __('Once you add this code and refresh your browser, multisite should be enabled. This screen, now in the Network Admin navigation menu, will keep an archive of the added code. You can toggle between Network Admin and Site Admin by clicking on the Network Admin or an individual site name under the My Sites dropdown in the Toolbar.') . '</p>' .
  • src/wp-admin/network/settings.php

    diff --git src/wp-admin/network/settings.php src/wp-admin/network/settings.php
    index efeaebdcfd..81bb04a0a9 100644
     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 /** WordPress Translation Install API */
     13/** WordPress Translation Installation API */
    1414require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
    1515
    1616if ( ! current_user_can( 'manage_network_options' ) )
    if ( $_POST ) { 
    6262                'first_comment_email',
    6363        );
    6464
    65         // Handle translation install.
     65        // Handle translation installation.
    6666        if ( ! empty( $_POST['WPLANG'] ) && wp_can_install_language_pack() ) {  // @todo: Skip if already installed
    6767                $language = wp_download_language_pack( $_POST['WPLANG'] );
    6868                if ( $language ) {
  • src/wp-admin/network/site-new.php

    diff --git src/wp-admin/network/site-new.php src/wp-admin/network/site-new.php
    index 0810f8a87a..395eae4a60 100644
     
    1010/** Load WordPress Administration Bootstrap */
    1111require_once( dirname( __FILE__ ) . '/admin.php' );
    1212
    13 /** WordPress Translation Install API */
     13/** WordPress Translation Installation API */
    1414require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
    1515
    1616if ( ! current_user_can( 'create_sites' ) ) {
    if ( isset($_REQUEST['action']) && 'add-site' == $_REQUEST['action'] ) { 
    4242        if ( preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) )
    4343                $domain = strtolower( $blog['domain'] );
    4444
    45         // If not a subdomain install, make sure the domain isn't a reserved word
     45        // If not a subdomain installation, make sure the domain isn't a reserved word
    4646        if ( ! is_subdomain_install() ) {
    4747                $subdirectory_reserved_names = get_subdirectory_reserved_names();
    4848
    if ( isset($_REQUEST['action']) && 'add-site' == $_REQUEST['action'] ) { 
    6262                'public' => 1
    6363        );
    6464
    65         // Handle translation install for the new site.
     65        // Handle translation installation for the new site.
    6666        if ( isset( $_POST['WPLANG'] ) ) {
    6767                if ( '' === $_POST['WPLANG'] ) {
    6868                        $meta['WPLANG'] = ''; // en_US
  • src/wp-admin/options-general.php

    diff --git src/wp-admin/options-general.php src/wp-admin/options-general.php
    index 834f02733a..4b35174560 100644
     
    99/** WordPress Administration Bootstrap */
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111
    12 /** WordPress Translation Install API */
     12/** WordPress Translation Installation API */
    1313require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
    1414
    1515if ( ! current_user_can( 'manage_options' ) )
  • src/wp-admin/options-writing.php

    diff --git src/wp-admin/options-writing.php src/wp-admin/options-writing.php
    index aa314f3bf2..51e306ea48 100644
    if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { 
    2727        get_current_screen()->add_help_tab( array(
    2828                'id'      => 'options-postemail',
    2929                'title'   => __( 'Post Via Email' ),
    30                 'content' => '<p>' . __( 'Post via email settings allow you to send your WordPress install an email with the content of your post. You must set up a secret email account with POP3 access to use this, and any mail received at this address will be posted, so it&#8217;s a good idea to keep this address very secret.' ) . '</p>',
     30                'content' => '<p>' . __( 'Post via email settings allow you to send your WordPress installation an email with the content of your post. You must set up a secret email account with POP3 access to use this, and any mail received at this address will be posted, so it&#8217;s a good idea to keep this address very secret.' ) . '</p>',
    3131        ) );
    3232}
    3333
  • src/wp-admin/options.php

    diff --git src/wp-admin/options.php src/wp-admin/options.php
    index d2e1c0374f..05f8025d3d 100644
    if ( 'update' == $action ) { 
    181181                        $_POST['timezone_string'] = '';
    182182                }
    183183
    184                 // Handle translation install.
     184                // Handle translation installation.
    185185                if ( ! empty( $_POST['WPLANG'] ) && ( ! is_multisite() || is_super_admin() ) ) { // @todo: Skip if already installed
    186186                        require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
    187187
  • src/wp-admin/plugin-install.php

    diff --git src/wp-admin/plugin-install.php src/wp-admin/plugin-install.php
    index f10f8faccb..855beb613d 100644
    wp_enqueue_script( 'updates' ); 
    6767do_action( "install_plugins_pre_{$tab}" );
    6868
    6969/*
    70  * Call the pre upload action on every non-upload plugin install screen
     70 * Call the pre upload action on every non-upload plugin installation screen
    7171 * because the form is always displayed on these screens.
    7272 */
    7373if ( 'upload' !== $tab ) {
    if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_plugins' ) ) { 
    129129
    130130<?php
    131131/*
    132  * Output the upload plugin form on every non-upload plugin install screen, so it can be
     132 * Output the upload plugin form on every non-upload plugin installation screen, so it can be
    133133 * displayed via JavaScript rather then opening up the devoted upload plugin page.
    134134 */
    135135if ( 'upload' !== $tab ) {
  • src/wp-admin/setup-config.php

    diff --git src/wp-admin/setup-config.php src/wp-admin/setup-config.php
    index 1404c32599..db10e25be2 100644
    require( ABSPATH . 'wp-settings.php' ); 
    3535/** Load WordPress Administration Upgrade API */
    3636require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
    3737
    38 /** Load WordPress Translation Install API */
     38/** Load WordPress Translation Installation API */
    3939require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
    4040
    4141nocache_headers();
    if ( file_exists( ABSPATH . 'wp-config.php' ) ) 
    5757                ) . '</p>'
    5858        );
    5959
    60 // Check if wp-config.php exists above the root directory but is not part of another install
     60// Check if wp-config.php exists above the root directory but is not part of another installation
    6161if ( @file_exists( ABSPATH . '../wp-config.php' ) && ! @file_exists( ABSPATH . '../wp-settings.php' ) ) {
    6262        wp_die( '<p>' . sprintf(
    6363                        /* translators: %s: install.php */
    switch($step) { 
    368368                        echo htmlentities($line, ENT_COMPAT, 'UTF-8');
    369369                }
    370370?></textarea>
    371 <p><?php _e( 'After you&#8217;ve done that, click &#8220;Run the install.&#8221;' ); ?></p>
    372 <p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the install' ); ?></a></p>
     371<p><?php _e( 'After you&#8217;ve done that, click &#8220;Run the installation.&#8221;' ); ?></p>
     372<p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the installation' ); ?></a></p>
    373373<script>
    374374(function(){
    375375if ( ! /iPad|iPod|iPhone/.test( navigator.userAgent ) ) {
    if ( ! /iPad|iPod|iPhone/.test( navigator.userAgent ) ) { 
    401401<h1 class="screen-reader-text"><?php _e( 'Successful database connection' ) ?></h1>
    402402<p><?php _e( 'All right, sparky! You&#8217;ve made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to&hellip;' ); ?></p>
    403403
    404 <p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the install' ); ?></a></p>
     404<p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the installation' ); ?></a></p>
    405405<?php
    406406        endif;
    407407        break;
  • src/wp-admin/theme-install.php

    diff --git src/wp-admin/theme-install.php src/wp-admin/theme-install.php
    index dd9ff500d1..90641c12a2 100644
    if ( $tab ) { 
    7676         * Fires before each of the tabs are rendered on the Install Themes page.
    7777         *
    7878         * The dynamic portion of the hook name, `$tab`, refers to the current
    79          * theme install tab. Possible values are 'dashboard', 'search', 'upload',
     79         * theme installation tab. Possible values are 'dashboard', 'search', 'upload',
    8080         * 'featured', 'new', or 'updated'.
    8181         *
    8282         * @since 2.8.0
    if ( $tab ) { 
    236236         * Fires at the top of each of the tabs on the Install Themes page.
    237237         *
    238238         * The dynamic portion of the hook name, `$tab`, refers to the current
    239          * theme install tab. Possible values are 'dashboard', 'search', 'upload',
     239         * theme installation tab. Possible values are 'dashboard', 'search', 'upload',
    240240         * 'featured', 'new', or 'updated'.
    241241         *
    242242         * @since 2.8.0
  • src/wp-admin/update.php

    diff --git src/wp-admin/update.php src/wp-admin/update.php
    index 0ae248c8b7..f24610f38d 100644
    if ( isset($_GET['action']) ) { 
    120120                        wp_die( $api );
    121121                }
    122122
    123                 $title = __('Plugin Install');
     123                $title = __('Plugin Installation');
    124124                $parent_file = 'plugins.php';
    125125                $submenu_file = 'plugin-install.php';
    126126                require_once(ABSPATH . 'wp-admin/admin-header.php');
  • src/wp-includes/class-wp-customize-manager.php

    diff --git src/wp-includes/class-wp-customize-manager.php src/wp-includes/class-wp-customize-manager.php
    index 9ba93c575c..7ccba99c75 100644
    final class WP_Customize_Manager { 
    535535                }
    536536
    537537                /*
    538                  * Import theme starter content for fresh installs when landing in the customizer.
     538                 * Import theme starter content for fresh installations when landing in the customizer.
    539539                 * Import starter content at after_setup_theme:100 so that any
    540540                 * add_theme_support( 'starter-content' ) calls will have been made.
    541541                 */
    final class WP_Customize_Manager { 
    17601760                $setting_validities = $this->validate_setting_values( $post_values );
    17611761                $exported_setting_validities = array_map( array( $this, 'prepare_setting_validity_for_js' ), $setting_validities );
    17621762
    1763                 // Note that the REQUEST_URI is not passed into home_url() since this breaks subdirectory installs.
     1763                // Note that the REQUEST_URI is not passed into home_url() since this breaks subdirectory installations.
    17641764                $self_url = empty( $_SERVER['REQUEST_URI'] ) ? home_url( '/' ) : esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) );
    17651765                $state_query_params = array(
    17661766                        'customize_theme',
  • src/wp-includes/class-wp-locale-switcher.php

    diff --git src/wp-includes/class-wp-locale-switcher.php src/wp-includes/class-wp-locale-switcher.php
    index b254be3a90..e111892871 100644
    class WP_Locale_Switcher { 
    158158        }
    159159
    160160        /**
    161          * Filters the WordPress install's locale.
     161         * Filters the locale of the WordPress installation.
    162162         *
    163163         * @since 4.7.0
    164164         *
    165          * @param string $locale The WordPress install's locale.
     165         * @param string $locale The locale of the WordPress installation.
    166166         * @return string The locale currently being switched to.
    167167         */
    168168        public function filter_locale( $locale ) {
  • src/wp-includes/class-wp-network.php

    diff --git src/wp-includes/class-wp-network.php src/wp-includes/class-wp-network.php
    index 36d8e63dba..311f3378a5 100644
    class WP_Network { 
    273273                 * only domains, thus meaning paths never need to be considered.
    274274                 *
    275275                 * This is a very basic optimization; anything further could have
    276                  * drawbacks depending on the setup, so this is best done per-install.
     276                 * drawbacks depending on the setup, so this is best done per-installation.
    277277                 */
    278278                $using_paths = true;
    279279                if ( wp_using_ext_object_cache() ) {
  • src/wp-includes/default-constants.php

    diff --git src/wp-includes/default-constants.php src/wp-includes/default-constants.php
    index dcad997a73..bf3e31dfb2 100644
    function wp_templating_constants() { 
    349349        define('STYLESHEETPATH', get_stylesheet_directory());
    350350
    351351        /**
    352          * Slug of the default theme for this install.
     352         * Slug of the default theme for this installation.
    353353         * Used as the default theme when installing new sites.
    354354         * It will be used as the fallback if the current theme doesn't exist.
    355355         *
  • src/wp-includes/deprecated.php

    diff --git src/wp-includes/deprecated.php src/wp-includes/deprecated.php
    index 780c2c7ddc..827710c0c2 100644
    function _search_terms_tidy( $t ) { 
    33723372 * Determine if TinyMCE is available.
    33733373 *
    33743374 * Checks to see if the user has deleted the tinymce files to slim down
    3375  * their WordPress install.
     3375 * their WordPress installation.
    33763376 *
    33773377 * @since 2.1.0
    33783378 * @deprecated 3.9.0
  • src/wp-includes/functions.php

    diff --git src/wp-includes/functions.php src/wp-includes/functions.php
    index ffb09f22d6..f5640c77ec 100644
    function is_blog_installed() { 
    13881388        $suppress = $wpdb->suppress_errors();
    13891389
    13901390        /*
    1391          * Loop over the WP tables. If none exist, then scratch install is allowed.
     1391         * Loop over the WP tables. If none exist, then scratch installation is allowed.
    13921392         * If one or more exist, suggest table repair since we got here because the
    13931393         * options table could not be accessed.
    13941394         */
    13951395        $wp_tables = $wpdb->tables();
    13961396        foreach ( $wp_tables as $table ) {
    1397                 // The existence of custom user tables shouldn't suggest an insane state or prevent a clean install.
     1397                // The existence of custom user tables shouldn't suggest an insane state or prevent a clean installation.
    13981398                if ( defined( 'CUSTOM_USER_TABLE' ) && CUSTOM_USER_TABLE == $table )
    13991399                        continue;
    14001400                if ( defined( 'CUSTOM_USER_META_TABLE' ) && CUSTOM_USER_META_TABLE == $table )
    function wp_guess_url() { 
    43264326                        } elseif ( false !== strpos( $abspath_fix, $script_filename_dir ) ) {
    43274327                                // Request is hitting a file above ABSPATH
    43284328                                $subdirectory = substr( $abspath_fix, strpos( $abspath_fix, $script_filename_dir ) + strlen( $script_filename_dir ) );
    4329                                 // Strip off any file/query params from the path, appending the sub directory to the install
     4329                                // Strip off any file/query params from the path, appending the sub directory to the installation
    43304330                                $path = preg_replace( '#/[^/]*$#i', '' , $_SERVER['REQUEST_URI'] ) . $subdirectory;
    43314331                        } else {
    43324332                                $path = $_SERVER['REQUEST_URI'];
    function is_main_site( $site_id = null ) { 
    44084408}
    44094409
    44104410/**
    4411  * Determine whether a network is the main network of the Multisite install.
     4411 * Determine whether a network is the main network of the Multisite installation.
    44124412 *
    44134413 * @since 3.7.0
    44144414 *
  • src/wp-includes/l10n.php

    diff --git src/wp-includes/l10n.php src/wp-includes/l10n.php
    index a81470ff7d..72bb406bc3 100644
    function get_locale() { 
    3232
    3333        if ( isset( $locale ) ) {
    3434                /**
    35                  * Filters WordPress install's locale ID.
     35                 * Filters the locale ID of the WordPress installation.
    3636                 *
    3737                 * @since 1.5.0
    3838                 *
    function is_textdomain_loaded( $domain ) { 
    979979 * are dummy gettext calls to get them into the POT file and this function
    980980 * properly translates them back.
    981981 *
    982  * The before_last_bar() call is needed, because older installs keep the roles
     982 * The before_last_bar() call is needed, because older installations keep the roles
    983983 * using the old context format: 'Role name|User role' and just skipping the
    984  * content after the last bar is easier than fixing them in the DB. New installs
     984 * content after the last bar is easier than fixing them in the DB. New installations
    985985 * won't suffer from that problem.
    986986 *
    987987 * @since 2.8.0
  • src/wp-includes/ms-deprecated.php

    diff --git src/wp-includes/ms-deprecated.php src/wp-includes/ms-deprecated.php
    index 6baac058d7..6089cdd520 100644
    function get_admin_users_for_domain( $sitedomain = '', $path = '' ) { 
    462462 *     @type int       $limit      Number of sites to limit the query to. Default 100.
    463463 *     @type int       $offset     Exclude the first x sites. Used in combination with the $limit parameter. Default 0.
    464464 * }
    465  * @return array An empty array if the install is considered "large" via wp_is_large_network(). Otherwise,
     465 * @return array An empty array if the installation is considered "large" via wp_is_large_network(). Otherwise,
    466466 *               an associative array of site data arrays, each containing the site (network) ID, blog ID,
    467467 *               site domain and path, dates registered and modified, and the language ID. Also, boolean
    468468 *               values for whether the site is public, archived, mature, spam, and/or deleted.
  • src/wp-includes/ms-functions.php

    diff --git src/wp-includes/ms-functions.php src/wp-includes/ms-functions.php
    index 29d737ab9b..ab98bc9e9a 100644
    function wpmu_validate_blog_signup( $blogname, $blog_title, $user = '' ) { 
    586586        }
    587587
    588588        /*
    589          * On sub dir installs, some names are so illegal, only a filter can
     589         * On sub dir installations, some names are so illegal, only a filter can
    590590         * spring them from jail.
    591591         */
    592592        if ( ! is_subdomain_install() ) {
    function wpmu_validate_blog_signup( $blogname, $blog_title, $user = '' ) { 
    680680         *     Array of domain, path, blog name, blog title, user and error messages.
    681681         *
    682682         *     @type string         $domain     Domain for the site.
    683          *     @type string         $path       Path for the site. Used in subdirectory installs.
     683         *     @type string         $path       Path for the site. Used in subdirectory installations.
    684684         *     @type string         $blogname   The unique site name (slug).
    685685         *     @type string         $blog_title Blog title.
    686686         *     @type string|WP_User $user       By default, an empty string. A user object if provided.
    function wpmu_create_user( $user_name, $password, $email ) { 
    11641164 * as when a Super Admin creates a new site. Hook to {@see 'wpmu_new_blog'}
    11651165 * for events that should affect all new sites.
    11661166 *
    1167  * On subdirectory installs, $domain is the same as the main site's
     1167 * On subdirectory installations, $domain is the same as the main site's
    11681168 * domain, and the path is the subdirectory name (eg 'example.com'
    1169  * and '/blog1/'). On subdomain installs, $domain is the new subdomain +
     1169 * and '/blog1/'). On subdomain installations, $domain is the new subdomain +
    11701170 * root domain (eg 'blog1.example.com'), and $path is '/'.
    11711171 *
    11721172 * @since MU (3.0.0)
    function wpmu_create_user( $user_name, $password, $email ) { 
    11801180 *                        'spam', 'deleted', or 'lang_id') the given site status(es) will be
    11811181 *                        updated. Otherwise, keys and values will be used to set options for
    11821182 *                        the new site. Default empty array.
    1183  * @param int    $site_id Optional. Network ID. Only relevant on multi-network installs.
     1183 * @param int    $site_id Optional. Network ID. Only relevant on multi-network installations.
    11841184 * @return int|WP_Error Returns WP_Error object on failure, the new site ID on success.
    11851185 */
    11861186function wpmu_create_blog( $domain, $path, $title, $user_id, $meta = array(), $site_id = 1 ) {
    function wpmu_create_blog( $domain, $path, $title, $user_id, $meta = array(), $s 
    12401240         * @param int    $user_id User ID.
    12411241         * @param string $domain  Site domain.
    12421242         * @param string $path    Site path.
    1243          * @param int    $site_id Network ID. Only relevant on multi-network installs.
     1243         * @param int    $site_id Network ID. Only relevant on multi-network installations.
    12441244         * @param array  $meta    Meta data. Used to set initial site options.
    12451245         */
    12461246        do_action( 'wpmu_new_blog', $blog_id, $user_id, $domain, $path, $site_id, $meta );
    Disable these notifications: %3$s'), $user->user_login, wp_unslash( $_SERVER['RE 
    13521352 *
    13531353 * @param string $domain  The domain to be checked.
    13541354 * @param string $path    The path to be checked.
    1355  * @param int    $site_id Optional. Relevant only on multi-network installs.
     1355 * @param int    $site_id Optional. Relevant only on multi-network installations.
    13561356 * @return int
    13571357 */
    13581358function domain_exists($domain, $path, $site_id = 1) {
    function domain_exists($domain, $path, $site_id = 1) { 
    13741374         * @param int|null $result  The blog_id if the blogname exists, null otherwise.
    13751375         * @param string   $domain  Domain to be checked.
    13761376         * @param string   $path    Path to be checked.
    1377          * @param int      $site_id Site ID. Relevant only on multi-network installs.
     1377         * @param int      $site_id Site ID. Relevant only on multi-network installations.
    13781378         */
    13791379        return apply_filters( 'domain_exists', $result, $domain, $path, $site_id );
    13801380}
    function domain_exists($domain, $path, $site_id = 1) { 
    13911391 *
    13921392 * @param string $domain  The domain of the new site.
    13931393 * @param string $path    The path of the new site.
    1394  * @param int    $site_id Unless you're running a multi-network install, be sure to set this value to 1.
     1394 * @param int    $site_id Unless you're running a multi-network installation, be sure to set this value to 1.
    13951395 * @return int|false The ID of the new row
    13961396 */
    13971397function insert_blog($domain, $path, $site_id) {
    function wp_is_large_network( $using = 'sites', $network_id = null ) { 
    25702570}
    25712571
    25722572/**
    2573  * Retrieves a list of reserved site on a sub-directory Multisite install.
     2573 * Retrieves a list of reserved site on a sub-directory Multisite installation.
    25742574 *
    25752575 * @since 4.4.0
    25762576 *
    function get_subdirectory_reserved_names() { 
    25832583        );
    25842584
    25852585        /**
    2586          * Filters reserved site names on a sub-directory Multisite install.
     2586         * Filters reserved site names on a sub-directory Multisite installation.
    25872587         *
    25882588         * @since 3.0.0
    25892589         * @since 4.4.0 'wp-admin', 'wp-content', 'wp-includes', 'wp-json', and 'embed' were added
  • src/wp-includes/ms-load.php

    diff --git src/wp-includes/ms-load.php src/wp-includes/ms-load.php
    index cf564990cc..3c51b3d158 100644
    function ms_load_current_site_and_network( $domain, $path, $subdomain = false ) 
    308308
    309309        } elseif ( ! $subdomain ) {
    310310                /*
    311                  * A "subdomain" install can be re-interpreted to mean "can support any domain".
    312                  * If we're not dealing with one of these installs, then the important part is determining
     311                 * A "subdomain" installation can be re-interpreted to mean "can support any domain".
     312                 * If we're not dealing with one of these installations, then the important part is determining
    313313                 * the network first, because we need the network's path to identify any sites.
    314314                 */
    315315                if ( ! $current_site = wp_cache_get( 'current_network', 'site-options' ) ) {
    function ms_load_current_site_and_network( $domain, $path, $subdomain = false ) 
    401401                do_action( 'ms_site_not_found', $current_site, $domain, $path );
    402402
    403403                if ( $subdomain && ! defined( 'NOBLOGREDIRECT' ) ) {
    404                         // For a "subdomain" install, redirect to the signup form specifically.
     404                        // For a "subdomain" installation, redirect to the signup form specifically.
    405405                        $destination .= 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain );
    406406                } elseif ( $subdomain ) {
    407                         // For a "subdomain" install, the NOBLOGREDIRECT constant
     407                        // For a "subdomain" installation, the NOBLOGREDIRECT constant
    408408                        // can be used to avoid a redirect to the signup form.
    409409                        // Using the ms_site_not_found action is preferred to the constant.
    410410                        if ( '%siteurl%' !== NOBLOGREDIRECT ) {
  • src/wp-includes/plugin.php

    diff --git src/wp-includes/plugin.php src/wp-includes/plugin.php
    index 86f1c3b319..baa0a585ff 100644
    function register_deactivation_hook($file, $function) { 
    780780 * The plugin should not run arbitrary code outside of functions, when
    781781 * registering the uninstall hook. In order to run using the hook, the plugin
    782782 * will have to be included, which means that any code laying outside of a
    783  * function will be run during the uninstall process. The plugin should not
    784  * hinder the uninstall process.
     783 * function will be run during the uninstallation process. The plugin should not
     784 * hinder the uninstallation process.
    785785 *
    786786 * If the plugin can not be written without running code within the plugin, then
    787787 * the plugin should create a file named 'uninstall.php' in the base plugin
    788  * folder. This file will be called, if it exists, during the uninstall process
     788 * folder. This file will be called, if it exists, during the uninstallation process
    789789 * bypassing the uninstall hook. The plugin, when using the 'uninstall.php'
    790790 * should always check for the 'WP_UNINSTALL_PLUGIN' constant, before
    791791 * executing.
  • src/wp-includes/script-loader.php

    diff --git src/wp-includes/script-loader.php src/wp-includes/script-loader.php
    index 5761dfe3df..9d30c8f4a5 100644
    function wp_default_scripts( &$scripts ) { 
    743743                                'installing'                 => __( 'Installing...' ),
    744744                                'pluginInstalled'            => _x( 'Installed!', 'plugin' ),
    745745                                'themeInstalled'             => _x( 'Installed!', 'theme' ),
    746                                 'installFailedShort'         => __( 'Install Failed!' ),
     746                                'installFailedShort'         => __( 'Installation Failed!' ),
    747747                                /* translators: %s: Error string for a failed installation */
    748748                                'installFailed'              => __( 'Installation failed: %s' ),
    749749                                /* translators: %s: Plugin name and version */
  • src/wp-includes/user.php

    diff --git src/wp-includes/user.php src/wp-includes/user.php
    index d2f57e9be5..0af6d02431 100644
    function validate_username( $username ) { 
    13831383 *
    13841384 * @since 2.0.0
    13851385 * @since 3.6.0 The `aim`, `jabber`, and `yim` fields were removed as default user contact
    1386  *              methods for new installs. See wp_get_user_contact_methods().
     1386 *              methods for new installations. See wp_get_user_contact_methods().
    13871387 * @since 4.7.0 The user's locale can be passed to `$userdata`.
    13881388 *
    13891389 * @global wpdb $wpdb WordPress database abstraction object.
  • src/wp-load.php

    diff --git src/wp-load.php src/wp-load.php
    index a1a9ad6b18..b32bcccebb 100644
    if ( file_exists( ABSPATH . 'wp-config.php') ) { 
    3838
    3939} elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) {
    4040
    41         /** The config file resides one level above ABSPATH but is not part of another install */
     41        /** The config file resides one level above ABSPATH but is not part of another installation */
    4242        require_once( dirname( ABSPATH ) . '/wp-config.php' );
    4343
    4444} else {
  • src/wp-settings.php

    diff --git src/wp-settings.php src/wp-settings.php
    index d1505c502d..3d4c210338 100644
    require_once( ABSPATH . WPINC . '/plugin.php' ); 
    2222
    2323/*
    2424 * These can't be directly globalized in version.php. When updating,
    25  * we're including version.php from another install and don't want
     25 * we're including version.php from another installation and don't want
    2626 * these values to be overridden if already set.
    2727 */
    2828global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version, $wp_local_package;
  • tests/phpunit/includes/mock-fs.php

    diff --git tests/phpunit/includes/mock-fs.php tests/phpunit/includes/mock-fs.php
    index 8873b5c6dc..c1266c60b7 100644
    class WP_Filesystem_MockFS extends WP_Filesystem_Base { 
    2525                        $path = ABSPATH;
    2626                $folder = $this->find_folder( $path );
    2727
    28                 // Perhaps the FTP folder is rooted at the WordPress install, Check for wp-includes folder in root, Could have some false positives, but rare.
     28                // Perhaps the FTP folder is rooted at the WordPress installation, Check for wp-includes folder in root, Could have some false positives, but rare.
    2929                if ( ! $folder && $this->is_dir('/wp-includes') )
    3030                        $folder = '/';
    3131                return $folder;
  • tests/phpunit/includes/object-cache.php

    diff --git tests/phpunit/includes/object-cache.php tests/phpunit/includes/object-cache.php
    index 51f3e910b9..0f51694387 100644
    class WP_Object_Cache { 
    835835
    836836                /**
    837837                 * This approach is borrowed from Sivel and Boren. Use the salt for easy cache invalidation and for
    838                  * multi single WP installs on the same server.
     838                 * multi single WP installations on the same server.
    839839                 */
    840840                if ( ! defined( 'WP_CACHE_KEY_SALT' ) )
    841841                        define( 'WP_CACHE_KEY_SALT', '' );
  • tests/phpunit/includes/trac.php

    diff --git tests/phpunit/includes/trac.php tests/phpunit/includes/trac.php
    index 6092a927c4..4ab3b7fd6c 100644
     
    22
    33class TracTickets {
    44        /**
    5          * When open tickets for a Trac install is requested, the results are stored here.
     5         * When open tickets for a Trac installation is requested, the results are stored here.
    66         *
    77         * @var array
    88         */
  • tests/phpunit/includes/utils.php

    diff --git tests/phpunit/includes/utils.php tests/phpunit/includes/utils.php
    index 96d9badaa1..396edaebb3 100644
    if ($this->debug) dmp(__FUNCTION__, $this->current_filter()); 
    139139}
    140140
    141141// convert valid xml to an array tree structure
    142 // kinda lame but it works with a default php 4 install
     142// kinda lame but it works with a default php 4 installation
    143143class testXMLParser {
    144144        var $xml;
    145145        var $data = array();
  • tests/phpunit/tests/filesystem/find_folder.php

    diff --git tests/phpunit/tests/filesystem/find_folder.php tests/phpunit/tests/filesystem/find_folder.php
    index 657e607ecd..1977bc5e37 100644
    class WP_Filesystem_find_folder_UnitTestCases extends WP_Filesystem_UnitTestCase 
    4848        }
    4949
    5050        /**
    51          * Two WordPress installs, with one contained within the other
     51         * Two WordPress installations, with one contained within the other
    5252         * FTP / = /var/www/example.com/ on Disk
    5353         * example.com at /
    5454         * wp.example.com at /wp.example.com/wordpress/
  • tests/phpunit/tests/http/base.php

    diff --git tests/phpunit/tests/http/base.php tests/phpunit/tests/http/base.php
    index a8792783d8..ac97fd6ea3 100644
    abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase { 
    384384         */
    385385        function test_ssl() {
    386386                if ( ! wp_http_supports( array( 'ssl' ) ) )
    387                         $this->fail( 'This install of PHP does not support SSL' );
     387                        $this->fail( 'This installation of PHP does not support SSL' );
    388388
    389389                $res = wp_remote_get( 'https://wordpress.org/' );
    390390                $this->assertNotWPError( $res );
  • wp-tests-config-sample.php

    diff --git wp-tests-config-sample.php wp-tests-config-sample.php
    index 3ea3c0296a..9716b3e1d0 100644
    define( 'ABSPATH', dirname( __FILE__ ) . '/src/' ); 
    77 * Path to the theme to test with.
    88 *
    99 * The 'default' theme is symlinked from test/phpunit/data/themedir1/default into
    10  * the themes directory of the WordPress install defined above.
     10 * the themes directory of the WordPress installation defined above.
    1111 */
    1212define( 'WP_DEFAULT_THEME', 'default' );
    1313