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. The above code … 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