Changeset 5901
- Timestamp:
- 08/10/2015 01:02:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/list-tables/topic-replies.php
r5886 r5901 137 137 public function column_bbp_reply_content( $item = '' ) { 138 138 139 // Start with the `edit` action139 // Define actions array 140 140 $actions = array( 141 'edit' => '<a href="' . get_edit_post_link( $item->ID ) . '">' . esc_html__( 'Edit', 'bbpress' ) . '</a>',142 141 'view' => '<a href="' . bbp_get_reply_url( $item->ID ) . '">' . esc_html__( 'View', 'bbpress' ) . '</a>' 143 142 ); 143 144 // Prepend `edit` link 145 if ( current_user_can( 'edit_reply', $item->ID ) ) { 146 $actions['edit'] = '<a href="' . get_edit_post_link( $item->ID ) . '">' . esc_html__( 'Edit', 'bbpress' ) . '</a>'; 147 $actions = array_reverse( $actions ); 148 } 144 149 145 150 // Filter the reply content
Note: See TracChangeset
for help on using the changeset viewer.