diff --git a/classes/Upgrades/NavMenus.php b/classes/Upgrades/NavMenus.php index c6c01f4..cd9a5a5 100644 --- a/classes/Upgrades/NavMenus.php +++ b/classes/Upgrades/NavMenus.php @@ -87,7 +87,7 @@ public function process( $item ) { $site_id = cboxol_get_group_site_id( $group_id ); $group = groups_get_group( $group_id ); $group_type = cboxol_get_group_group_type( $group_id ); - $home_url = bp_get_group_permalink( $group ); + $home_url = bp_get_group_url( $group ); } else { $site_id = $item->get_value( 'site_id' ); $group_type = cboxol_get_group_type( $item->get_value( 'group_type' ) ); diff --git a/includes/clone.php b/includes/clone.php index 68e7446..6c1ec0a 100644 --- a/includes/clone.php +++ b/includes/clone.php @@ -236,7 +236,7 @@ function openlab_get_group_data_for_clone_history( $source_id ) { $source_data = array( 'group_id' => $source_id, - 'group_url' => bp_get_group_permalink( $source_group ), + 'group_url' => bp_get_group_url( $source_group ), 'group_name' => $course_code ? $course_code : $group_type_label, 'group_admins' => $admins, 'group_creator_id' => $source_group->creator_id, diff --git a/includes/group-sites.php b/includes/group-sites.php index 9329db9..754536e 100644 --- a/includes/group-sites.php +++ b/includes/group-sites.php @@ -531,7 +531,7 @@ function openlab_group_blog_activity( $activity ) { __( '%1$s wrote a new blog post %2$s in the group %3$s', 'commons-in-a-box' ), bp_core_get_userlink( $activity->user_id ), '' . esc_html( $post->post_title ) . '', - '' . esc_html( $group->name ) . '' + '' . esc_html( $group->name ) . '' ); } else { $userlink = ''; @@ -545,7 +545,7 @@ function openlab_group_blog_activity( $activity ) { __( '%1$s commented on %2$s in the group %3$s', 'commons-in-a-box' ), $userlink, '' . esc_html( $post->post_title ) . '', - '' . esc_html( $group->name ) . '' + '' . esc_html( $group->name ) . '' ); } @@ -1165,7 +1165,7 @@ function openlab_convert_feed_to_activity( $items = array(), $item_type = 'posts $group = groups_get_current_group(); $group_name = $group->name; - $group_permalink = bp_get_group_permalink( $group ); + $group_permalink = bp_get_group_url( $group ); $group_link = sprintf( '%s', @@ -1834,7 +1834,7 @@ function( $v ) use ( $source_site_url, $source_site_upload_dir, $dest_site_url, $nav_items['group'], array( 'menu-item-title' => '[ ' . $group_type->get_label( 'group_home' ) . ' ]', - 'menu-item-url' => bp_get_group_permalink( $group ), + 'menu-item-url' => bp_get_group_url( $group ), 'menu-item-status' => 'publish', 'menu-item-position' => -2, 'menu-item-classes' => 'group-profile-link', @@ -2114,7 +2114,7 @@ function cboxol_get_nav_menu_items() { 'object_id' => $group_id, 'object' => 'custom', 'title' => '[ ' . $group_type->get_label( 'group_home' ) . ' ]', - 'url' => bp_get_group_permalink( $group ), + 'url' => bp_get_group_url( $group ), 'slug' => 'group-profile-link', 'type' => 'custom', 'classes' => [ 'group-profile-link' ], diff --git a/includes/network-toolbar.php b/includes/network-toolbar.php index 10e6c27..7eb5574 100644 --- a/includes/network-toolbar.php +++ b/includes/network-toolbar.php @@ -921,17 +921,17 @@ public function add_invites_menu( $wp_admin_bar ) { foreach ( (array) $invites['groups'] as $group ) { if ( $group_counter < 3 ) { // avatar - $title = '
Profile picture of ' . stripslashes( $group->name ) . '
'; + ) . '" alt="Profile picture of ' . esc_attr( stripslashes( $group->name ) ) . '"/>
'; // name link - $title .= '

' . stripslashes( $group->name ) . '

'; + $title .= '
'; diff --git a/includes/portfolios.php b/includes/portfolios.php index d0b9243..9892aec 100644 --- a/includes/portfolios.php +++ b/includes/portfolios.php @@ -97,7 +97,7 @@ function openlab_user_portfolio_profile_url( $user_id = 0 ) { function openlab_get_user_portfolio_profile_url( $user_id = 0 ) { $group_id = openlab_get_user_portfolio_id( $user_id ); $profile_obj = groups_get_group( array( 'group_id' => $group_id ) ); - return bp_get_group_permalink( $profile_obj ); + return bp_get_group_url( $profile_obj ); } /**