Fix a sprintf call. props wojtek.szkutnik, sorich87. fixes #14555.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
20bbf977a2
commit
057ed950e7
|
@ -100,7 +100,7 @@ switch ( $_GET['action'] ) {
|
||||||
wp_die( __( 'You do not have permission to access this page.' ) );
|
wp_die( __( 'You do not have permission to access this page.' ) );
|
||||||
|
|
||||||
if ( empty( $_POST ) )
|
if ( empty( $_POST ) )
|
||||||
wp_die( sprintf( __( 'You probably need to go back to the <a href="%s">options page</a>.', esc_url( admin_url( 'settings.php' ) ) ) ) );
|
wp_die( sprintf( __( 'You probably need to go back to the <a href="%s">options page</a>.' ), esc_url( admin_url( 'settings.php' ) ) ) );
|
||||||
|
|
||||||
if ( isset($_POST['WPLANG']) && ( '' === $_POST['WPLANG'] || in_array( $_POST['WPLANG'], get_available_languages() ) ) )
|
if ( isset($_POST['WPLANG']) && ( '' === $_POST['WPLANG'] || in_array( $_POST['WPLANG'], get_available_languages() ) ) )
|
||||||
update_site_option( 'WPLANG', $_POST['WPLANG'] );
|
update_site_option( 'WPLANG', $_POST['WPLANG'] );
|
||||||
|
@ -178,7 +178,7 @@ switch ( $_GET['action'] ) {
|
||||||
} else {
|
} else {
|
||||||
wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'not_deleted' ), wp_get_referer() ) );
|
wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'not_deleted' ), wp_get_referer() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
exit();
|
exit();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue