From 65ca4dfb234da8c0345cb29b200970f5c713a875 Mon Sep 17 00:00:00 2001 From: Boone B Gorges Date: Fri, 15 Nov 2024 15:20:19 -0600 Subject: [PATCH] More use of bp_get_group_url(). See cuny-academic-commons/commons-in-a-box#458. --- bbpress/content-single-topic.php | 2 +- buddypress/groups/groups-loop.php | 6 +++--- buddypress/groups/single/invite-anyone.php | 11 +++++++++-- buddypress/groups/single/nav/docs.php | 6 ++---- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/bbpress/content-single-topic.php b/bbpress/content-single-topic.php index 82548cb..cd2a0ab 100644 --- a/bbpress/content-single-topic.php +++ b/bbpress/content-single-topic.php @@ -78,7 +78,7 @@
-

+

diff --git a/buddypress/groups/groups-loop.php b/buddypress/groups/groups-loop.php index 8ffbc52..115c444 100644 --- a/buddypress/groups/groups-loop.php +++ b/buddypress/groups/groups-loop.php @@ -137,7 +137,7 @@ function ( $type ) { esc_html__( 'Displaying clones of %1$s by %2$s.', 'commons-in-a-box' ), sprintf( '%s', - esc_attr( bp_get_group_permalink( $descendant_of_group ) ), + esc_attr( bp_get_group_url( $descendant_of_group ) ), esc_html( $descendant_of_group->name ) ), implode( ', ', $descendant_of_admin_links ) @@ -217,7 +217,7 @@ function ( $type ) {
get_label( 'singular' ) ); ?>
- <?php echo esc_attr( bp_get_group_name() ); ?> + <?php echo esc_attr( bp_get_group_name() ); ?> @@ -227,7 +227,7 @@ function ( $type ) {

- +

diff --git a/buddypress/groups/single/invite-anyone.php b/buddypress/groups/single/invite-anyone.php index 34c8ed8..52e0234 100644 --- a/buddypress/groups/single/invite-anyone.php +++ b/buddypress/groups/single/invite-anyone.php @@ -10,10 +10,17 @@ - + -
+
diff --git a/buddypress/groups/single/nav/docs.php b/buddypress/groups/single/nav/docs.php index 282258a..e61e6f2 100644 --- a/buddypress/groups/single/nav/docs.php +++ b/buddypress/groups/single/nav/docs.php @@ -8,13 +8,11 @@ $group = groups_get_current_group(); -$group_permalink = bp_get_group_permalink( $group ); - ?> -
  • >
  • +
  • >
  • -
  • >
  • +
  • >