Make WordPress Core

Changeset 48676


Ignore:
Timestamp:
07/28/2020 05:54:52 PM (4 years ago)
Author:
desrosj
Message:

Upgrade/Install: Correct spelling of “overwrite” in new hooks and array indexes.

See #9757.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-plugin-installer-skin.php

    r48661 r48676  
    252252         * @param array  $new_plugin_data     Array with uploaded plugin data.
    253253         */
    254         echo apply_filters( 'install_plugin_ovewrite_comparison', $table, $current_plugin_data, $new_plugin_data );
     254        echo apply_filters( 'install_plugin_overwrite_comparison', $table, $current_plugin_data, $new_plugin_data );
    255255
    256256        $install_actions = array();
     
    308308            $overwrite = $this->is_downgrading ? 'downgrade-plugin' : 'update-plugin';
    309309
    310             $install_actions['ovewrite_plugin'] = sprintf(
     310            $install_actions['overwrite_plugin'] = sprintf(
    311311                '<a class="button button-primary update-from-upload-overwrite" href="%s" target="_parent">%s</a>',
    312312                wp_nonce_url( add_query_arg( 'overwrite', $overwrite, $this->url ), 'plugin-upload' ),
     
    326326
    327327        /**
    328          * Filters the list of action links available following a single plugin installation failed but ovewrite is allowed.
     328         * Filters the list of action links available following a single plugin installation failed but overwrite is allowed.
    329329         *
    330330         * @since 5.5.0
     
    334334         * @param array    $new_plugin_data Array with uploaded plugin data.
    335335         */
    336         $install_actions = apply_filters( 'install_plugin_ovewrite_actions', $install_actions, $this->api, $new_plugin_data );
     336        $install_actions = apply_filters( 'install_plugin_overwrite_actions', $install_actions, $this->api, $new_plugin_data );
    337337
    338338        if ( ! empty( $install_actions ) ) {
  • trunk/src/wp-admin/includes/class-theme-installer-skin.php

    r48666 r48676  
    341341            $overwrite = $this->is_downgrading ? 'downgrade-theme' : 'update-theme';
    342342
    343             $install_actions['ovewrite_theme'] = sprintf(
     343            $install_actions['overwrite_theme'] = sprintf(
    344344                '<a class="button button-primary update-from-upload-overwrite" href="%s" target="_parent">%s</a>',
    345345                wp_nonce_url( add_query_arg( 'overwrite', $overwrite, $this->url ), 'theme-upload' ),
     
    359359
    360360        /**
    361          * Filters the list of action links available following a single theme installation failed but ovewrite is allowed.
     361         * Filters the list of action links available following a single theme installation failed but overwrite is allowed.
    362362         *
    363363         * @since 5.5.0
     
    367367         * @param array    $new_theme_data  Array with uploaded theme data.
    368368         */
    369         $install_actions = apply_filters( 'install_theme_ovewrite_actions', $install_actions, $this->api, $new_theme_data );
     369        $install_actions = apply_filters( 'install_theme_overwrite_actions', $install_actions, $this->api, $new_theme_data );
    370370
    371371        if ( ! empty( $install_actions ) ) {
Note: See TracChangeset for help on using the changeset viewer.