WordPress.org

Ready to get started?Download WordPress

Forums

Save the ~ in URIs (3 posts)

  1. hbeekers
    Member
    Posted 10 years ago #

    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 http://mysite/~user
    Hope this is a useable suggestion.

  2. davesgonechina
    Member
    Posted 10 years ago #

    very handy, thanks

  3. Cena
    Member
    Posted 10 years ago #

    Would you please add this to the wiki, beekers? :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.