Skip to content

Commit

Permalink
Merge pull request #1 from kelvin-xu/master
Browse files Browse the repository at this point in the history
Fixed a fatal error showing on UBC Blogs where the function gets call…
  • Loading branch information
kelvin-xu authored Jul 21, 2022
2 parents 101b528 + e2977d8 commit 0a24b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-caliper-event-hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ function wp_caliper_add_attachment( $post_id ) {
* @param bool $user_login user login.
* @param \WP_USER $user WordPress user object.
*/
function wp_caliper_wp_login( $user_login, $user ) {
function wp_caliper_wp_login( $user_login = false, $user = false ) {
if ( empty( $user->ID ) ) {
return;
}
Expand Down

0 comments on commit 0a24b58

Please sign in to comment.