• In template_functions.php, in function comment_author_link, I changed
    $url = preg_replace(‘|[^a-z0-9-_.?#=&;,/:]|i’, ”, $url);
    to
    $url = preg_replace(‘|[^a-z0-9-_.?#~=&;,/:]|i’, ”, $url);
    to save tildes in comment author URIs like https://mysite/~user
    Hope this is a useable suggestion.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Save the ~ in URIs’ is closed to new replies.