Skip to content

Commit

Permalink
Merge pull request #254 from janboddez/trunk
Browse files Browse the repository at this point in the history
Fix deprecation notice
  • Loading branch information
dshanske authored Nov 11, 2023
2 parents 9ce31d6 + 6eddcb3 commit 23f1aed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/class-indieauth-client-taxonomy.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public static function generate_slug( $url ) {
// strip leading www, if any.
$host = preg_replace( '/^www\./', '', $host );
$path = wp_parse_url( $url, PHP_URL_PATH );
$path = str_replace( '/', '_', $title );
$path = str_replace( '/', '_', $path );
return sanitize_title( $host . $path );
}

Expand Down
2 changes: 1 addition & 1 deletion includes/class-web-signin.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function authenticate( $user, $url ) {
if ( $user instanceof WP_User ) {
return $user;
}
$redirect_to = array_key_exists( 'redirect_to', $_REQUEST ) ? $_REQUEST['redirect_to'] : null;
$redirect_to = array_key_exists( 'redirect_to', $_REQUEST ) ? $_REQUEST['redirect_to'] : '';
$redirect_to = rawurldecode( $redirect_to );
$token = new Token_Transient( 'indieauth_state' );
if ( array_key_exists( 'code', $_REQUEST ) && array_key_exists( 'state', $_REQUEST ) ) {
Expand Down

0 comments on commit 23f1aed

Please sign in to comment.