Changeset 9045 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-meta.php
- Timestamp:
- 07/15/2019 06:12:55 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-meta.php
r9044 r9045 188 188 <?php if ( empty( $args['hide_tags'] ) ) { 189 189 $terms = get_the_terms( $post, 'plugin_tags' ); 190 if ( is_wp_error( $terms ) ) {190 if ( ! $terms || is_wp_error( $terms ) ) { 191 191 $terms = array(); 192 192 } … … 200 200 $term_links = array_filter( array_map( function( $term ) { 201 201 $link = get_term_link( $term, 'plugin_tags' ); 202 203 204 205 206 202 if ( is_wp_error( $link ) ) { 203 return ''; 204 } 205 return '<a href="' . esc_url( $link ) . '" rel="tag">' . $term->name . '</a>'; 206 }, $terms ) ); 207 207 208 208 echo '<li class="clear">';
Note: See TracChangeset
for help on using the changeset viewer.