Skip to content

Commit

Permalink
change deprecated function 'create_function'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhonaldomaster committed Jan 26, 2018
1 parent 87d2910 commit 8aaf953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kili-automatic-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function kili_transient_update_themes_filter( $data ) {
}

// Sort and get latest tag.
$tags = array_map( create_function( '$t', 'return $t->name;' ), $response );
$tags = array_map(function ($t) { return $t->name; }, $response );
usort( $tags, "version_compare" );

// check and generate download link.$GLOBALS.
Expand Down

0 comments on commit 8aaf953

Please sign in to comment.