From 0f79100d4c70cd3303e75a7d80cbb851993db044 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Mon, 11 Dec 2017 21:54:10 +0800 Subject: [PATCH 1/3] Fix license keys settings --- includes/admin/core/class-admin-settings.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/includes/admin/core/class-admin-settings.php b/includes/admin/core/class-admin-settings.php index 3f364282..9a939a50 100644 --- a/includes/admin/core/class-admin-settings.php +++ b/includes/admin/core/class-admin-settings.php @@ -1637,11 +1637,11 @@ if ( ! class_exists( 'Admin_Settings' ) ) { success ) { @@ -1873,7 +1873,10 @@ if ( ! class_exists( 'Admin_Settings' ) ) { ); $license_status = null; - } ?> + + } + + ?> @@ -1886,7 +1889,7 @@ if ( ! class_exists( 'Admin_Settings' ) ) {
- license ) || 'valid' == $license ) { ?> + license ) || 'valid' == $license ) ) { ?> From 18dc885ac015117b845565a74c679a53615336e2 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Tue, 12 Dec 2017 18:36:29 +0800 Subject: [PATCH 2/3] Fix wpml profile language slug --- includes/core/um-filters-language.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/core/um-filters-language.php b/includes/core/um-filters-language.php index 292a8077..60fa69ff 100644 --- a/includes/core/um-filters-language.php +++ b/includes/core/um-filters-language.php @@ -48,7 +48,7 @@ function um_core_page_wpml_permalink( $array ){ $permalink_base = um_get_option('permalink_base'); // Get user slug - $profile_slug = get_user_meta( um_profile_id(), "um_user_profile_url_slug_{$permalink_base}", true ); + $profile_slug = strtolower( get_user_meta( um_profile_id(), "um_user_profile_url_slug_{$permalink_base}", true ) ); $current_language = ICL_LANGUAGE_CODE; foreach ( $array as $lang_code => $arr ) { $sitepress->switch_lang( $lang_code ); From da7d53d0fb67155e20b5265657dbea410065b018 Mon Sep 17 00:00:00 2001 From: Denis Baranov Date: Tue, 12 Dec 2017 17:00:21 +0200 Subject: [PATCH 3/3] - fixed notices --- includes/core/class-query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/core/class-query.php b/includes/core/class-query.php index e0f963f4..04b5e7e2 100644 --- a/includes/core/class-query.php +++ b/includes/core/class-query.php @@ -109,7 +109,7 @@ if ( ! class_exists( 'Query' ) ) { } else { $custom_posts = new \WP_Query(); - $args['post_status'] = explode( ',', $args['post_status'] ); + $args['post_status'] = is_array( $args['post_status'] ) ? $args['post_status'] : explode( ',', $args['post_status'] ); $custom_posts->query( $args );