Daniel 'MaTachi' Jonsson

Tag Archives: WordPress

Updated My Blog

Some days ago I felt that my blog was really slow and sluggish, so I looked into that problem. I deleted plugins that I didn’t use and I installed the cache plugin W3 Total Cache. So it should run much better now, which I think it has done during these few days of testing since the installation.

When I did the performance tweaking, I also realised that the theme monochrome that I used was kinda ugly and boring. So I went to WordPress.org and found a really nice and free theme called Tarski. As always I had to do some tweaking to the code to feel satisfied; in this case was the largest change the randomizing banner. I hope you like the theme and find it pretty. :)

How to Use Double Dash in WordPress

To make WordPress stop converting two dashes into a single one, follow this guide:

  1. Open wp-includes/formatting.php.
  2. Navigate to line 56.
  3. Change line 56 and 57 from:
    $static_characters = array_merge(array('---', ' -- ', '--', ' - ', 'xn–', '...', '``', '\'\'', ' (tm)'), $cockney);
    $static_replacements = array_merge(array('—', ' — ', '–', ' – ', 'xn--', '…', $opening_quote, $closing_quote, ' ™'), $cockneyreplace);

    to:

    $static_characters = array_merge(array(' - ', 'xn–', '...', '``', '\'\'', ' (tm)'), $cockney);
    $static_replacements = array_merge(array(' – ', 'xn--', '…', $opening_quote, $closing_quote, ' ™'), $cockneyreplace);
  4. Done!

Remove “An automated WordPress update has failed to complete” error message

I just updated WordPress from 3.0.0 to 3.0.1 manually, because it didn’t work to automatically update it. When I was finished I was stuck with this message on the admin panel:

An automated WordPress update has failed to complete

This problem was easily solved by deleting the file .maintenance in the website’s root directory.