Changeset 13437 for trunk/src/bp-groups/bp-groups-admin.php
- Timestamp:
- 03/18/2023 09:42:31 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-admin.php
r13433 r13437 639 639 $form_url = remove_query_arg( array( 'action', 'deleted', 'no_admins', 'error', 'error_new', 'success_new', 'error_modified', 'success_modified' ), $_SERVER['REQUEST_URI'] ); 640 640 $form_url = add_query_arg( 'action', 'save', $form_url ); 641 $create_url = bp_get_groups_directory_url( 642 array( 643 'create_single_item' => 1, 644 ) 645 ); 641 646 642 647 /** … … 655 660 656 661 <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?> 657 <a class="page-title-action" href="<?php echo trailingslashit( bp_get_groups_directory_permalink() . 'create' ); ?>"><?php_e( 'Add New', 'buddypress' ); ?></a>662 <a class="page-title-action" href="<?php echo esc_url( $create_url ); ?>"><?php esc_html_e( 'Add New', 'buddypress' ); ?></a> 658 663 <?php endif; ?> 659 664 … … 684 689 <strong><?php esc_html_e( 'Permalink:', 'buddypress' ) ?></strong> 685 690 <span id="bp-groups-permalink"> 686 <?php bp_groups_directory_ permalink(); ?> <input type="text" id="bp-groups-slug" name="bp-groups-slug" value="<?php bp_group_slug( $group ); ?>" autocomplete="off"> /691 <?php bp_groups_directory_url(); ?> <input type="text" id="bp-groups-slug" name="bp-groups-slug" value="<?php bp_group_slug( $group ); ?>" autocomplete="off"> / 687 692 </span> 688 <a href="<?php echo bp_group_permalink( $group ) ?>" class="button button-small" id="bp-groups-visit-group"><?php esc_html_e( 'Visit Group', 'buddypress' ) ?></a>693 <a href="<?php bp_group_url( $group ) ?>" class="button button-small" id="bp-groups-visit-group"><?php esc_html_e( 'Visit Group', 'buddypress' ) ?></a> 689 694 </div> 690 695 … … 814 819 // Prepare the group items for display. 815 820 $bp_groups_list_table->prepare_items(); 821 $create_url = bp_get_groups_directory_url( 822 array( 823 'create_single_item' => 1, 824 ) 825 ); 816 826 817 827 /** … … 831 841 832 842 <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?> 833 <a class="page-title-action" href="<?php echo trailingslashit( bp_get_groups_directory_permalink() . 'create' ); ?>"><?php_e( 'Add New', 'buddypress' ); ?></a>843 <a class="page-title-action" href="<?php echo esc_url( $create_url ); ?>"><?php esc_html_e( 'Add New', 'buddypress' ); ?></a> 834 844 <?php endif; ?> 835 845
Note: See TracChangeset
for help on using the changeset viewer.