mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-02 01:01:18 +03:00
Log: Make last two params of add_log_entry optional
This commit is contained in:
parent
3d8c0c16b5
commit
74c8cd1d9a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue