Changeset 6028
- Timestamp:
- 10/14/2017 12:33:55 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-review-tools.php
r5707 r6028 1 1 <?php 2 2 namespace WordPressdotorg\Plugin_Directory\Admin\Metabox; 3 use WordPressdotorg\Plugin_Directory\Tools; 3 4 4 5 /** … … 46 47 $author = get_user_by( 'id', $post->post_author ); 47 48 49 $committers = Tools::get_plugin_committers( $post->post_name ); 50 $committers = array_map( function ( $user_login ) { 51 return get_user_by( 'login', $user_login ); 52 }, $committers ); 53 54 $cc_emails = wp_list_pluck( $committers, 'user_email' ); 55 $cc_emails = implode( ', ', array_diff( $cc_emails, array( $author->user_email ) ) ); 56 48 57 if ( 'new' === $post->post_status || 'pending' === $post->post_status ) { 49 58 /* translators: %s: plugin title */ … … 61 70 <input type="hidden" name="to_email" value="<?php echo esc_attr( $author->user_email ); ?>" /> 62 71 <input type="hidden" name="to_name" value="<?php echo esc_attr( $author->display_name ); ?>" /> 72 <input type="hidden" name="cc" value="<?php echo esc_attr( $cc_emails ); ?>" /> 63 73 <input type="hidden" name="subject" value="<?php echo esc_attr( $subject ); ?>" /> 64 74 <button class="button button-primary" type="submit"><?php _e( 'Contact plugin author', 'wporg-plugins' ); ?></button>
Note: See TracChangeset
for help on using the changeset viewer.