Index: src/wp-admin/includes/upgrade.php =================================================================== --- src/wp-admin/includes/upgrade.php (revision 29260) +++ src/wp-admin/includes/upgrade.php (working copy) @@ -2193,26 +2193,32 @@ } endif; +/** + * Output the input fields for the language selection form on the installation screen. + * + * @since 4.0.0 + * + * @see wp_get_available_translations_from_api() + * + * @param array $languages Array of available languages (populated via the Translations API). + */ function wp_install_language_form( $languages ) { - echo "
\n"; + echo "\n"; echo ''; } Index: src/wp-admin/js/language-chooser.js =================================================================== --- src/wp-admin/js/language-chooser.js (revision 29260) +++ src/wp-admin/js/language-chooser.js (working copy) @@ -1,43 +1,2 @@ -(function($){ - if ( $('body').hasClass('language-chooser') === false ) { - return; - } - var mouseDown = 0, - $fieldset = $('fieldset'); - - // simple way to check if mousebutton is depressed while accounting for multiple mouse buttons being used independently - document.body.onmousedown = function() { - ++mouseDown; - }; - document.body.onmouseup = function() { - --mouseDown; - }; - - /* - we can't rely upon the focusout event - since clicking on a label triggers it - */ - function maybeRemoveFieldsetFocus(){ - if (mouseDown) { - setTimeout( maybeRemoveFieldsetFocus, 50); - return; - } - if ( $(':focus').hasClass('language-chooser-input') !== true ) { - $fieldset.removeClass('focus'); - } - } - - $fieldset.focusin( function() { - $(this).addClass('focus'); - }); - - $fieldset.focusout( function() { - setTimeout( maybeRemoveFieldsetFocus, 50); - }); - - $('form').submit(function(){ - $(this).find('.step .spinner').css('visibility','visible'); - }); - -})(jQuery); +/* nothing here currently */ Index: src/wp-admin/css/install.css =================================================================== --- src/wp-admin/css/install.css (revision 29260) +++ src/wp-admin/css/install.css (working copy) @@ -320,31 +320,16 @@ max-width: 300px; } -.language-chooser fieldset { - margin: 1px; +.language-chooser select { padding: 8px; + width: 100%; display: block; border: 1px solid #ddd; - -webkit-border-radius: 0; - border-radius: 0; /* Reset mobile webkit's default element styling */ - -webkit-transition: .05s border-color ease-in-out; - transition: .05s border-color ease-in-out; - outline: 0; - -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.07); - box-shadow: inset 0 1px 2px rgba(0,0,0,0.07); background-color: #fff; color: #333; font-size: 16px; - font-family: inherit; - font-weight: inherit; - overflow-y: scroll; - height: 250px; -} - -.language-chooser fieldset.focus { - border-color: #5b9dd9; - -webkit-box-shadow: 0 0 2px rgba(30,140,190,0.8); - box-shadow: 0 0 2px rgba(30,140,190,0.8); + font-family: Arial, sans-serif; + font-weight: normal; } .wp-core-ui.language-chooser .button.button-hero { @@ -356,23 +341,6 @@ text-align: right; } -.language-chooser input:checked + label{ - color:white; - background: #777; -} - -.language-chooser .focus input:checked + label{ - background: #0074A2; -} - -.language-chooser label:hover { - background: #eee; -} - -.language-chooser label{ - display:block; -} - .screen-reader-input, .screen-reader-text { position: absolute;