Skip to content

Commit

Permalink
Update class-indieauth-client-taxonomy.php
Browse files Browse the repository at this point in the history
  • Loading branch information
janboddez authored Nov 11, 2023
1 parent 1debcdb commit 6eddcb3
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 6eddcb3

Please sign in to comment.