• 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 https://www.my-domain-name.com, I’m using https://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. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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);

    Thread Starter dft3

    (@dft3)

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

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dashes in Domain Causing Problems’ is closed to new replies.