Changeset 11162
- Timestamp:
- 09/28/2016 01:23:31 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-list-table.php
r11141 r11162 711 711 * @param array $item The current group item in the loop. 712 712 */ 713 public function column_content_group_type( $retval , $column_name, $item ) {713 public function column_content_group_type( $retval = '', $column_name, $item ) { 714 714 if ( 'bp_group_type' !== $column_name ) { 715 715 return $retval; … … 722 722 if ( $type_obj = bp_groups_get_group_type_object( $type ) ) { 723 723 $url = add_query_arg( array( 'bp-group-type' => urlencode( $type ) ) ); 724 $ type_string= '<a href="' . esc_url( $url ) . '">' . esc_html( $type_obj->labels['singular_name'] ) . '</a>';724 $retval = '<a href="' . esc_url( $url ) . '">' . esc_html( $type_obj->labels['singular_name'] ) . '</a>'; 725 725 } 726 726 … … 730 730 * @since 2.7.0 731 731 * 732 * @param string $ type_stringMarkup for the Group Type column.733 * @parma array $item The current group item in the loop.734 */ 735 echo apply_filters_ref_array( 'bp_groups_admin_get_group_type_column', array( $ type_string, $item ) );732 * @param string $retval Markup for the Group Type column. 733 * @parma array $item The current group item in the loop. 734 */ 735 echo apply_filters_ref_array( 'bp_groups_admin_get_group_type_column', array( $retval, $item ) ); 736 736 } 737 737
Note: See TracChangeset
for help on using the changeset viewer.