Changeset 8426
- Timestamp:
- 05/16/2014 10:23:57 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-admin.php
r8425 r8426 1377 1377 function column_comment( $item = array() ) { 1378 1378 1379 // Preorder items: Visit | Edit | Delete1379 // Preorder items: Edit | Delete | View 1380 1380 $actions = array( 1381 'visit' => '',1382 1381 'edit' => '', 1383 1382 'delete' => '', 1383 'view' => '', 1384 1384 ); 1385 1385 … … 1391 1391 $delete_url = wp_nonce_url( $base_url . "&action=delete", 'bp-groups-delete' ); 1392 1392 $edit_url = $base_url . '&action=edit'; 1393 $vi sit_url= bp_get_group_permalink( $item_obj );1393 $view_url = bp_get_group_permalink( $item_obj ); 1394 1394 1395 1395 // Rollover actions 1396 1396 1397 // Visit1398 $actions['visit'] = sprintf( '<a href="%s">%s</a>', esc_url( $visit_url ), __( 'Visit', 'buddypress' ) );1399 1400 1397 // Edit 1401 $actions['edit'] = sprintf( '<a href="%s">%s</a>', esc_url( $edit_url ), __( 'Edit','buddypress' ) );1398 $actions['edit'] = sprintf( '<a href="%s">%s</a>', esc_url( $edit_url ), __( 'Edit', 'buddypress' ) ); 1402 1399 1403 1400 // Delete 1404 1401 $actions['delete'] = sprintf( '<a href="%s">%s</a>', esc_url( $delete_url ), __( 'Delete', 'buddypress' ) ); 1402 1403 // Visit 1404 $actions['view'] = sprintf( '<a href="%s">%s</a>', esc_url( $view_url ), __( 'View', 'buddypress' ) ); 1405 1405 1406 1406 // Other plugins can filter which actions are shown … … 1419 1419 ) ); 1420 1420 1421 $content = apply_filters_ref_array( 'bp_get_group_name', array( $item['name'], $item ) );1421 $content = apply_filters_ref_array( 'bp_get_group_name', array( sprintf( '<strong><a href="%s">%s</a></strong>', esc_url( $edit_url ), $item['name'] ), $item ) ); 1422 1422 1423 1423 echo $avatar . ' ' . $content . ' ' . $this->row_actions( $actions );
Note: See TracChangeset
for help on using the changeset viewer.