Make WordPress Core


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.