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

See #9757.
Built from https://develop.svn.wordpress.org/trunk@48676


git-svn-id: http://core.svn.wordpress.org/trunk@48438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj
2020-07-28 17:56:04 +00:00
parent 7267fc02b0
commit 1aa48c68f5
3 changed files with 8 additions and 8 deletions

View File

@@ -340,7 +340,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
$overwrite = $this->is_downgrading ? 'downgrade-theme' : 'update-theme';
$install_actions['ovewrite_theme'] = sprintf(
$install_actions['overwrite_theme'] = sprintf(
'<a class="button button-primary update-from-upload-overwrite" href="%s" target="_parent">%s</a>',
wp_nonce_url( add_query_arg( 'overwrite', $overwrite, $this->url ), 'theme-upload' ),
__( 'Replace current with uploaded' )
@@ -358,7 +358,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
);
/**
* Filters the list of action links available following a single theme installation failed but ovewrite is allowed.
* Filters the list of action links available following a single theme installation failed but overwrite is allowed.
*
* @since 5.5.0
*
@@ -366,7 +366,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
* @param object $api Object containing WordPress.org API theme data.
* @param array $new_theme_data Array with uploaded theme data.
*/
$install_actions = apply_filters( 'install_theme_ovewrite_actions', $install_actions, $this->api, $new_theme_data );
$install_actions = apply_filters( 'install_theme_overwrite_actions', $install_actions, $this->api, $new_theme_data );
if ( ! empty( $install_actions ) ) {
printf(