Blog

  • extract() usage is highly discouraged

    extract() usage is highly discouraged

    In 2012, the much loved and much missed WordPress developer Alex Mills raised a WordPress Trac ticket

    extract() is a terrible function that makes code harder to debug and harder to understand. We should discourage it’s use and remove all of our uses of it.

    As a result, use of the PHP functions was removed from WordPress and was added to the coding standards (which, in turn, made it into the WordPress sniffs for PHPCS).

    But why, and what should we do instead?

    (more…)
  • Create a live preview of your WordPress plugin using Playground

    Create a live preview of your WordPress plugin using Playground

    WordPress Playground, if you’ve not tried it already, is a browser based instance of WordPress, operated by WordPress.org. Essentially, you can create a temporary version of WordPress for use in trying things out.

    And developer, with plugins in the official directory, can now add a button to their plugin page, with a direct link to Playground, allowing an instance installation and demonstration of your plugin.

    (more…)
  • ShareOpenly: Now for WordPress

    ShareOpenly: Now for WordPress

    Ben Werdmuller, a developer and startup founder, has recently launched ShareOpenly, a method of adding sharing links to your website content but for the modern, open, social web.

    You know all those “share to Facebook” / “share to Twitter” links you see all over peoples’ websites? They’re all out of date.

    Social media has evolved over the last year, yet nobody has “share to” links for Mastodon, Bluesky, Threads, etc. There have been a few attempts to create “share to Mastodon” buttons, but they haven’t taken the larger breadth of the new social media landscape into account.

    So I’ve built a prototype, which I’ve called ShareOpenly.

    ShareOpenly announcement

    Now, a WordPress plugin is available to add this feature quickly and easy to your site. Indeed, scroll down to the bottom of this post and you’ll see it in action!

    (more…)
  • My contribution to WordPress 6.5

    My contribution to WordPress 6.5

    I was on vacation last week so wasn’t around for the release of WordPress 6.5.

    Look closely at the long list of contributors and you’ll find my name. And, once, once more, my change was related to inclusionary language.

    (more…)
  • Please don’t buy any Google Nest products

    Please don’t buy any Google Nest products

    I have a house full of Google Nest products, adding a video doorbell to my collection only last year. And, yet, I would no longer recommend them and will be looking to find alternatives as my existing products need replacing.

    Why? Well, it’s the usual thing of not being able to trust Google to just stop supporting your pricey bit of kit.

    (more…)