Skip to content

Commit

Permalink
possibility to call rila_user() without arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
JuhG committed Sep 15, 2017
1 parent 71e2102 commit 2c30f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function rila_comment( $comment ) {
* @param mixed $user Either a WP_User or a user ID.
* @return User
*/
function rila_user( $user ) {
function rila_user( $user = null ) {
return Rila\User::factory( $user );
}

Expand Down

0 comments on commit 2c30f28

Please sign in to comment.