From 4f444b94e68f264eff682fa5575d83f3e7dd3caa Mon Sep 17 00:00:00 2001 From: denisbaranov Date: Sun, 20 Sep 2020 14:06:00 +0300 Subject: [PATCH] Minor changes. Fix PHP notice. --- includes/core/um-actions-profile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/core/um-actions-profile.php b/includes/core/um-actions-profile.php index 7686f3f8..f4134eeb 100644 --- a/includes/core/um-actions-profile.php +++ b/includes/core/um-actions-profile.php @@ -624,7 +624,7 @@ add_action( 'get_header', 'um_profile_remove_wpseo', 8 ); /** * The profile page SEO tags - * + * * @see https://ogp.me/ - The Open Graph protocol * @see https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/summary - The Twitter Summary card * @see https://schema.org/Person - The schema.org Person schema @@ -678,7 +678,7 @@ function um_profile_dynamic_meta_desc() { - + @@ -715,7 +715,7 @@ add_action( 'wp_head', 'um_profile_dynamic_meta_desc', 20 ); * @param $args */ function um_profile_header_cover_area( $args ) { - if ( $args['cover_enabled'] == 1 ) { + if ( isset( $args['cover_enabled'] ) && $args['cover_enabled'] == 1 ) { $default_cover = UM()->options()->get( 'default_cover' );