Log: Make last two params of add_log_entry optional

This commit is contained in:
Corey McKrill 2019-10-25 17:33:08 -07:00
parent 3d8c0c16b5
commit 74c8cd1d9a
No known key found for this signature in database
GPG key ID: C2C0746F7BF17E38

View file

@ -95,7 +95,7 @@ function get_pledge_log( $pledge_id ) {
*
* @return void
*/
function add_log_entry( $pledge_id, $message, array $data, $user_id ) {
function add_log_entry( $pledge_id, $message, array $data = array(), $user_id = 0 ) {
$entry = get_log_entry_template();
$entry['message'] = $message;