Skip to content

Commit c4d4a12

Browse files
committed
Fix error.
1 parent ff8a4c8 commit c4d4a12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-activate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
}
3636

3737
if ( $key ) {
38-
$redirect_url = remove_query_arg('key');
38+
$redirect_url = remove_query_arg( 'key' );
3939

4040
if ( remove_query_arg( false ) !== $redirect_url ) {
4141
setcookie( $activate_cookie, $key, 0, $activate_path, COOKIE_DOMAIN, is_ssl(), true );
@@ -49,7 +49,7 @@
4949
if ( null === $result && isset( $_COOKIE[ $activate_cookie ] ) ) {
5050
$key = $_COOKIE[ $activate_cookie ];
5151
$result = wpmu_activate_signup( $key );
52-
setcookie( $activate_cookie, ' ',time()-YEAR_IN_SECONDS, $activate_path, COOKIE_DOMAIN, is_ssl(), true );
52+
setcookie( $activate_cookie, ' ', time() - YEAR_IN_SECONDS, $activate_path, COOKIE_DOMAIN, is_ssl(), true );
5353
}
5454

5555
if ( null === $result || ( is_wp_error( $result ) && 'invalid_key' === $result->get_error_code() ) ) {

0 commit comments

Comments
 (0)