WordPress.org

Ready to get started?Download WordPress

Forums

Dashes in Domain Causing Problems (4 posts)

  1. dft3
    Member
    Posted 8 years ago #

    I just uploaded my WordPress 1.5.2 files to a new domain, but I'm having a strange problem. The domain that I'm using has -- in it instead of the usual -. For example, instead of http://www.my-domain-name.com, I'm using http://www.my--domain--name.com and when I complete the installation of WordPress, it does some really weird things to my files.

    It appears as though it doesn't know what to do with the -- and it is converting it to – everywhere so nothing works properly.

    Help! Please. :-)

  2. Kafkaesqui

    Posted 8 years ago #

    Don't recall if this affects all areas the blog address is used, but you can try commmenting out or removing the following line from default-filters.php (wp-includes/ directory):

    add_filter('bloginfo', 'wptexturize');

    If that doesn't do it, do the same to this line in the wptexturize function in functions-formatting.php (also under wp-includes/):

    $curl = str_replace('--', '–', $curl);

  3. dft3
    Member
    Posted 8 years ago #

    Thanks. I'll give it a try. Will this break anything?

  4. Kafkaesqui

    Posted 8 years ago #

    I thought it was already broken...

    Seriously, it'll just keep WordPress from formatting '--' as '–', the first in any bloginfo() output, and the second in everything else.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags