[wp-trac] [WordPress Trac] #29274: Displays Original Name in Plugin Details Instead of Display Name

WordPress Trac noreply at wordpress.org
Fri Sep 5 16:45:50 UTC 2014


#29274: Displays Original Name in Plugin Details Instead of Display Name
--------------------------+-----------------------------
 Reporter:  kidsguide     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Plugins       |     Version:  4.0
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------------

Comment (by kidsguide):

 Its with this code. It is in the wp-admin/includes/plugin-install.php in
 WordPress 4.0.

 {{{
                 if ( ! empty( $api->contributors ) ) { ?>
                         <h3><?php _e( 'Contributors' ); ?></h3>
                         <ul class="contributors">
                                 <?php
                                 foreach ( (array) $api->contributors as
 $contrib_username => $contrib_profile ) {
                                         if ( empty( $contrib_username ) &&
 empty( $contrib_profile ) ) {
                                                 continue;
                                         }
                                         if ( empty( $contrib_username ) )
 {
                                                 $contrib_username =
 preg_replace( '/^.+\/(.+)\/?$/', '\1', $contrib_profile );
                                         }
                                         $contrib_username = sanitize_user(
 $contrib_username );
                                         if ( empty( $contrib_profile ) ) {
                                                 echo "<li><img
 src='https://wordpress.org/grav-
 redirect.php?user={$contrib_username}&s=36' width='18' height='18'
 />{$contrib_username}</li>";
                                         } else {
                                                 echo "<li><a
 href='{$contrib_profile}' target='_blank'><img src='https://wordpress.org
 /grav-redirect.php?user={$contrib_username}&s=36' width='18'
 height='18' />{$contrib_username}</a></li>";
                                         }
                                 }
                                 ?>
                         </ul>
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29274#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list