Allow html in Contact Form 7 error messages

Contact Form 7 has a filter where one can alter the messages being sent back to the browser called wpcf7_validation_error. A simple htmlspecialchars_decode altering the $message variable before returning will do the trick. This function will run on any error for any form you have in your site (any CF7 form that is). If you … Continued

Trusting the Development Process (spoiler: it’s not about trusting)

The Setup I’ve recently started using quill.js in a personal project I made up; specifically so I could build something with quill.js. The app is geared towards learning pieces of text by rote learning. The user will pick a piece of text or enter their own in one text editor and then retype it in … Continued

Jetpack 404 not found: devicepx.js

Jetpack 404 not found: devicepx.js

While setting up this site I noticed some files not found errors in dev console. One was devicepx.js which was in the jetpack modules path. It’s used to optionally load retina/HiDPI versions of files. I believe it would be for gravatars and since this site doesn’t use gravatars I deemed it unnecessary. //remove unecessary queing … Continued

Set no browser cache in drupal

I’ve recently been adding cache to a clients website for admins. It’s been quite the learning process and today I think I’ve finally nailed the final bug. On a set of pages we’re using a module to order displayed videos called Draggable Views. We noticed that anonymous users would sometimes, but not all the time, … Continued

Sublime Text 3 and SublimePhpTidy

There is a great plugin for Sublime Text 2 called SublimePhpTidy. It hasn’t been updated to the beta version 3 of Sublime Text as of this post. The easy fix is to clone the above github project into your packages folder. On mac it’s here ~/Library/Application Support/Sublime Text 3/Packages. I’m not sure where on Windows, … Continued

Earliest WordPress Hook Where Global $post Variable Exists

In the file wp-includes/class-wp.php there is a hook run which is simply named 'wp'. This, as far as I can tell, seems to be the earliest hook in which the $post object variable exists. The hook is passed the &$this object which the comments state: references the WP object. It allows for accessing the properties … Continued

Finally! Darker than lowest brightness setting on iOS 8

Go to Settings → General → Accessibility → Zoom. Enable Zoom. Tap 3 fingers on the screen to bring up zoom options. Choose filter: low light. Go back to Settings → General → Accessibility → Zoom and change the zoom region to full screen. Turn Zoom off. Go to Settings → General → Accessibility → … Continued

Disable WordPress visual editor without losing media upload and insertion support

Disabling the visual text editor in a users settings page or by the following code in your functions.php file may have an unintended consequence. //hide visual editor add_filter('user_can_richedit', create_function('', 'return false;'), 50); While it will remove the visual editor it also removes media upload capabalities (without removing the ‘add media’ button to boot!). A way … Continued