← All changes
|
includes/admin/classes/class-bbp-topic-replies-list-table.php
+6
-6
2.6.17
→
2.6.19
View file →
| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | * Topic Replies List Table class. |
| 5 | 5 | * |
| 6 | 6 | * @package bbPress |
| 7 | 7 | * @subpackage Administration |
| 8 | - * @since 2.6.0 | |
| 8 | + * @since 2.6.0 bbPress (r5886) | |
| 9 | 9 | * @access private |
| 10 | 10 | * |
| 11 | 11 | * @see WP_Posts_List_Table |
| 12 | 12 | */ |
| @@ -117,11 +117,11 @@ | ||
| 117 | 117 | * @since 2.6.0 bbPress (r5886) |
| 118 | 118 | */ |
| 119 | 119 | public function column_bbp_topic_reply_author( $item = '' ) { |
| 120 | 120 | bbp_reply_author_avatar( $item->ID, 50 ); |
| 121 | - bbp_reply_author_display_name( $item->ID ); | |
| 121 | + echo esc_html( bbp_get_reply_author_display_name( $item->ID ) ); | |
| 122 | 122 | echo '<br>'; |
| 123 | - bbp_reply_author_email( $item->ID ); | |
| 123 | + echo esc_html( bbp_get_reply_author_email( $item->ID ) ); | |
| 124 | 124 | echo '<br>'; |
| 125 | 125 | bbp_author_ip( array( 'post_id' => $item->ID ) ); |
| 126 | 126 | } |
| 127 | 127 | |
| @@ -145,14 +145,14 @@ | ||
| 145 | 145 | public function column_bbp_reply_content( $item = '' ) { |
| 146 | 146 | |
| 147 | 147 | // Define actions array |
| 148 | 148 | $actions = array( |
| 149 | - 'view' => '<a href="' . bbp_get_reply_url( $item->ID ) . '">' . esc_html__( 'View', 'bbpress' ) . '</a>' | |
| 149 | + 'view' => '<a href="' . esc_url( bbp_get_reply_url( $item->ID ) ) . '">' . esc_html__( 'View', 'bbpress' ) . '</a>' | |
| 150 | 150 | ); |
| 151 | 151 | |
| 152 | 152 | // Prepend `edit` link |
| 153 | 153 | if ( current_user_can( 'edit_reply', $item->ID ) ) { |
| 154 | - $actions['edit'] = '<a href="' . get_edit_post_link( $item->ID ) . '">' . esc_html__( 'Edit', 'bbpress' ) . '</a>'; | |
| 154 | + $actions['edit'] = '<a href="' . esc_url( get_edit_post_link( $item->ID ) ) . '">' . esc_html__( 'Edit', 'bbpress' ) . '</a>'; | |
| 155 | 155 | $actions = array_reverse( $actions ); |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | // Filter the reply content |
| @@ -321,9 +321,9 @@ | ||
| 321 | 321 | |
| 322 | 322 | /** |
| 323 | 323 | * Generates content for a single row of the table |
| 324 | 324 | * |
| 325 | - * @since 2.6.0 | |
| 325 | + * @since 2.6.0 bbPress (r6546) | |
| 326 | 326 | * @access public |
| 327 | 327 | * |
| 328 | 328 | * @param object $item The current item |
| 329 | 329 | */ |