Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 130709

error on function wc_maybe_store_user_agent()

$
0
0

Replies: 0

Hello lovely and cool people. Love this part of WP.
I’ve get a request to see about a bug on redirect in WP after an external login.
It seem that the function on file
includes\wc-core-functions.php at line 1516
function wc_maybe_store_user_agent( $user_login, $user) {
should maybe be:
function wc_maybe_store_user_agent( $user_login, $user = '' ) {
because if the second arg isn’t present the function will return this:
[21-Apr-2017 14:34:06 UTC] PHP Warning: Missing argument 2 for wc_maybe_store_user_agent() in ….woocommerce\includes\wc-core-functions.php on line 1516
??
Best regards!


Viewing all articles
Browse latest Browse all 130709

Trending Articles