Changeset 4620 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-developers.php
- Timestamp:
- 01/10/2017 08:33:47 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-developers.php
r4468 r4620 18 18 $output = ''; 19 19 20 if ( $contributors = get_the_terms( $post->ID, 'plugin_contributors' ) ) { 21 $contributors = wp_list_pluck( $contributors, 'name' ); 22 } else { 20 $contributors = get_terms( array( 21 'taxonomy' => 'plugin_contributors', 22 'object_ids' => array( $post->ID ), 23 'orderby' => 'term_order', 24 'fields' => 'names', 25 ) ); 26 27 if ( ! $contributors || is_wp_error( $contributors ) ) { 23 28 $contributors = array(); 24 29 if ( $author = get_user_by( 'id', $post->post_author ) ) { … … 26 31 } 27 32 } 28 sort( $contributors, SORT_NATURAL );29 33 30 34 $output .= '<p>' . __( 'This is open source software. The following people have contributed to this plugin.', 'wporg-plugins' ) . '</p>';
Note: See TracChangeset
for help on using the changeset viewer.