mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-15 04:37:00 +09:00
- small PHP notices fixes;
This commit is contained in:
@@ -269,8 +269,9 @@ if ( ! class_exists( 'um\core\External_Integrations' ) ) {
|
||||
function get_languages_codes( $current_code = false ) {
|
||||
global $sitepress;
|
||||
|
||||
if ( ! $this->is_wpml_active() )
|
||||
if ( ! $this->is_wpml_active() ) {
|
||||
return $current_code;
|
||||
}
|
||||
|
||||
$current_code = ! empty( $current_code ) ? $current_code : $sitepress->get_current_language();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user