Skip to content

Commit

Permalink
define display_name even though core fixes
Browse files Browse the repository at this point in the history
eliminates a PHP error
  • Loading branch information
afragen committed Feb 18, 2018
1 parent 3968003 commit 0770871
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/GitHub_Updater/Readme_Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ private function create_contributors( $users ) {
global $wp_version;
$contributors = array();
foreach ( (array) $users as $contributor ) {
$contributors[ $contributor ]['profile'] = '//profiles.wordpress.org/' . $contributor;
$contributors[ $contributor ]['avatar'] = 'https://wordpress.org/grav-redirect.php?user=' . $contributor;
$contributors[ $contributor ]['display_name'] = $contributor;
$contributors[ $contributor ]['profile'] = '//profiles.wordpress.org/' . $contributor;
$contributors[ $contributor ]['avatar'] = 'https://wordpress.org/grav-redirect.php?user=' . $contributor;
if ( $wp_version < '5.0-alpha-42631' ) {
$contributors[ $contributor ] = '//profiles.wordpress.org/' . $contributor;
}
Expand Down

0 comments on commit 0770871

Please sign in to comment.