Category: Maintenance
-
Deployment and WordPress
There are many ways to deploy WordPress, but I’m going to cover a process that should work for most people, provides security, and makes life easier. I’ll be covering each part and how to implement it: Track The Entire Install With Git Use a git repository to hold the entire install, everything inside htdocs/public_html. This…
-
Scaling the WP Importer
Small scale imports are handy, but when sites get large you can run into problems. Normally people fall back to using SQL dumps, but doing this sidesteps hooks, and filters that could be important. Here are some tips on how to make WordPress imports and exports using WXR files easier. The First Major Problem When loading…
-
WordPress Bash Magic
I’ve been doing a lot of bash scripting with WordPress, especially with WP CLI. Here are some snippets I found useful. All my scripts assume a standard wp-config.php with DEFINE() statements and no unusual logic structures. A rogue constant with the name DB_NAME may throw things off without some modification. Getting the Database table prefix If you…
-
Local Indicator v1.3
After releasing v1.3, I thought I’d comment on the two significant changes I made. While there may be no visible change on the surface, new filters have been added to modify the colour and text of the indicator. For example, here’s code to change the colour to yellow: You can also change the text: Perhaps…
-
Clients Who Upload Huge Photos & Decompression Bombs
Sometimes a client makes a blog post, and puts a photo in the middle. All good so far, until you realise the client has dragged an image from their brand new camera expecting a 10 Megapixel image to work. This is usually when people start talking about upload max file size limits, but this is…
-
WordPress Flow Charts & Diagrams
There’s a number of WordPress flow charts and diagrams in the community, to which the phrase worth their own weight in gold does no justice. For that adage to be true these charts would be so dense no light would reach them, rendering them utterly useless. So I’ve gathered a few of the more notable…
-
Typekit & “BESbswy”
Perhaps you found a span containing the string ‘BESbswy’ in your content? Maybe your Google results contain the word ‘BESbswy’ repeated many times? Think you’ve been hacked? You haven’t. You’ve fallen prey to a runtime test in the Typekit/Webfontloader! I began noticing this in drafts I’d written while testing old versions of my TinyMCE Typekit…
-
Tracking WordPress Site Updates Install in Google-Docs
It’s important to keep WordPress up to date, but keeping track of all your sites can be a struggle. I recently had to list and check every site for updates, but I couldn’t use a service such as WP Remote. It had to be locally or private hosted. So I turned to Google Docs! Here…