mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 06:03:38 +09:00
Version 1.0.48
This commit is contained in:
@@ -67,7 +67,6 @@
|
||||
|
||||
$locale = get_option('WPLANG');
|
||||
if ( !$locale ) return;
|
||||
if ( file_exists( WP_LANG_DIR . '/plugins/ultimatemember-'.$locale.'.mo' ) ) return;
|
||||
if ( !isset( $ultimatemember->available_languages[$locale] ) ) return;
|
||||
|
||||
$path = $ultimatemember->files->upload_basedir;
|
||||
@@ -86,7 +85,9 @@
|
||||
copy( $remote2_tmp, $path . 'ultimatemember-' . $locale . '.mo' );
|
||||
unlink( $remote2_tmp );
|
||||
|
||||
exit( wp_redirect( remove_query_arg('um_adm_action') ) );
|
||||
$url = remove_query_arg('um_adm_action', $ultimatemember->permalinks->get_current_url() );
|
||||
$url = add_query_arg('update','language_updated',$url);
|
||||
exit( wp_redirect($url) );
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user