Artikel in Serie WordPress

Not Being Tracked by Functions In WordPress Core

Install the plugin „Disable Google Fonts“ to disable the loading of „OpenSans“ from Google when using WP admin. The font brings no advantages over the standard appearance of WP admin.

Install the plugin „Disable Emojis“ to disable the loading of an external Javascript that does nothing but implement ugly, useless smileys even when your site is not using them. Installing this plugin will disable that function completely.

Support For Multiple Languages in WordPress

Introduction

Foreign visitors have pointed out to me that they sometimes read my blog using translation functions in their their webbrowsing software, most notably „Google Translate“ which is directly built into Google Chrome. That translation function does a good job, but sometimes produces oddities, for example it attempts to translate my lastname, which is also a valid German vocable.

That problem was quickly addressed by adding the class="notranslate" plus the HTML5 language attribute translate="no" to a <span> surrounding my name. But this incident contrasted a deeper problem that has been troubeling me for a while now.

Weiterlesen … »

Adding Custom Format Buttons To tinyMCE in WordPress 4

Introduction

In my technical articles I sometimes use inline fragments typed in a monospace font to highlight code or filenames that appear within floating paragraph text. Back in the days I did this with the <tt> element, nowadays I use <span class="tt"> and a CSS style like

.tt { font-family: monospace; }

I wanted to extend the tinyMCE in WordPress with a toggle button that behaves like the Bold or Italic buttons and surrounds selected text with such a <span class="tt"> element or, when pressed while an already surrounded text is selected, removes that surrounding again. Also, when the cursor is inside such an element, the button should switch to an „active“ state that indicates that the character format can be deselected.

Weiterlesen … »

WordPress Mitigation for CVE-2016-10033 („PwnScriptum“)

In your WP installation, replace the file wp-includes/class-phpmailer.php with the one from PHPMailer at least of version 5.2.18:

cd $wp_install
curl -L \
    https://github.com/PHPMailer/PHPMailer/archive/v5.2.21.tar.gz | \
    tar xzOf - PHPMailer-5.2.21/class.phpmailer.php \
    > wp-includes/class-phpmailer.php