diff --git a/src/wp-admin/includes/ms.php b/src/wp-admin/includes/ms.php
index ad9dbec3b2..e46df4caf9 100644
|
a
|
b
|
jQuery( function($) { |
| 1016 | 1016 | // Don't show a spinner for English and installed languages, |
| 1017 | 1017 | // as there is nothing to download. |
| 1018 | 1018 | if ( ! languageSelect.find( 'option:selected' ).data( 'installed' ) ) { |
| 1019 | | $( '#submit', this ).after( '<span class="spinner language-install-spinner is-active" />' ); |
| | 1019 | $( '#submit', this ).attr( 'disabled', true ).after( '<span class="spinner language-install-spinner is-active" />' ); |
| 1020 | 1020 | } |
| 1021 | 1021 | }); |
| 1022 | 1022 | } ); |
diff --git a/src/wp-admin/includes/options.php b/src/wp-admin/includes/options.php
index 68e9138a2f..68b8e5f81e 100644
|
a
|
b
|
function options_general_add_js() { |
| 93 | 93 | // Don't show a spinner for English and installed languages, |
| 94 | 94 | // as there is nothing to download. |
| 95 | 95 | if ( ! languageSelect.find( 'option:selected' ).data( 'installed' ) ) { |
| 96 | | $( '#submit', this ).after( '<span class="spinner language-install-spinner is-active" />' ); |
| | 96 | $( '#submit', this ).attr( 'disabled', true ).after( '<span class="spinner language-install-spinner is-active" />' ); |
| 97 | 97 | } |
| 98 | 98 | }); |
| 99 | 99 | } ); |