- Timestamp:
- 03/08/2019 03:36:04 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r44574 r44822 1127 1127 $terms = get_the_terms( $post->ID, $taxonomy ); 1128 1128 if ( is_array( $terms ) ) { 1129 $ out= array();1129 $term_links = array(); 1130 1130 foreach ( $terms as $t ) { 1131 1131 $posts_in_term_qv = array(); … … 1141 1141 1142 1142 $label = esc_html( sanitize_term_field( 'name', $t->name, $t->term_id, $taxonomy, 'display' ) ); 1143 $out[] = $this->get_edit_link( $posts_in_term_qv, $label ); 1143 1144 $term_links[] = $this->get_edit_link( $posts_in_term_qv, $label ); 1144 1145 } 1146 1147 /** 1148 * Filters the links in `$taxonomy` column of edit.php. 1149 * 1150 * @since 5.2.0 1151 * 1152 * @param array $term_links List of links to edit.php, filtered by the taxonomy term. 1153 * @param string $taxonomy Taxonomy name. 1154 * @param array $terms Array of terms appearing in the post row. 1155 */ 1156 $term_links = apply_filters( 'post_column_taxonomy_links', $term_links, $taxonomy, $terms ); 1157 1145 1158 /* translators: used between list items, there is a space after the comma */ 1146 echo join( __( ', ' ), $ out);1159 echo join( __( ', ' ), $term_links ); 1147 1160 } else { 1148 1161 echo '<span aria-hidden="true">—</span><span class="screen-reader-text">' . $taxonomy_object->labels->no_terms . '</span>';
Note: See TracChangeset
for help on using the changeset viewer.