Make WordPress Core


Ignore:
Timestamp:
02/04/2010 06:46:25 PM (14 years ago)
Author:
ryan
Message:

Introduce get_available_languages(). Validate WPLANG. fixes #11774

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-edit.php

    r12945 r12946  
    2424            wp_die( __("You probably need to go back to the <a href='ms-options.php'>options page</a>") );
    2525
    26         if ( isset($_POST['WPLANG']) )
     26        if ( isset($_POST['WPLANG']) && ( '' === $_POST['WPLANG'] || in_array($_POST['WPLANG'], get_available_languages()) ) )
    2727            update_site_option( "WPLANG", $_POST['WPLANG'] );
    2828
Note: See TracChangeset for help on using the changeset viewer.