On April 15, 2025 at 13:48

Responded to @kasparsd:

Destructuring with defaults 📜 ES6 (2015)

const { foo = 'default' } = {};

Sets the default value of foo to 'default' if the value isn't defined.

On April 15, 2025 at 13:48

JavaScript object tricks that look weird but work wonders (and when they were added to the language.

If you've ever seen { [key]: value } and thought “what the heck?” — this thread is for you.👇

On April 14, 2025 at 19:39

Was chatting with an AI about Zero-Knowledge (ZK) proofs and how they relate to backtraces and public-key crypto (concepts I know):

> Imagine a PHP backtrace, turned into a spreadsheet, hashed into a Merkle root, and then proved using fancy math that it obeyed all your function contracts without ever showing you the contents. 🤯

On April 14, 2025 at 13:48

Built the ultimate login/logout block that works with the WP core navigation block. Use it to:

– Display only the logout link for logged-in users.
– Display only the login link for anonymous users.
– Specify a custom page (any post type) as the login destination.

On April 9, 2025 at 13:48

Do we really need to wait for the block bits (a shortcode replacement) to enable dynamic content inside inline elements? Currently there isn't a way to display the post title as a paragraph tag in a query loop block, for example.

On April 7, 2025 at 13:48

Responded to @kasparsd:

Importantly, it doesn’t matter if just one sitemap is slow to respond — it will still encourage Google to throttle crawling.

Most of the popular SEO plugin sitemap implementations are known to have both issues on sites with 10k posts or more — there is a delay in regeneration and the dynamic response times can be 30 seconds and more even on dedicated enterprise hosting.

Make sure your sitemaps are quick to update and fast to render at ALL times!

On April 7, 2025 at 13:48

I see a lot of publishers struggle with timely search engine indexing after publishing or updating an article. This happens because:

(1) the update invalidates the sitemap cache and Google sees a long response time due to regeneration which makes it apply crawl throttling as the site appears to be overloaded; or

(2) the sitemap returns stale content (without the new article URL) because there is a delay in regeneration.

On April 4, 2025 at 19:39

I wish wp-scripts considered all JS files in the ./src directory as webpack entrypoints. The current behaviour is very unpredictable and broken:

1. No way to specify individual JS files as entry points while keeping the blocks/*/block.json parsing.

2. Ignores src/index.js entrypoint if src/blocks/*/blocks.json is present.

On April 2, 2025 at 19:39

Version 0.13.0 of the Two Factor plugin for WordPress is out! 🚀

It features a new filter to limit the available two-factor methods for each user. Useful for disabling less secure methods for super-admins, for example.

On April 1, 2025 at 19:39

How do you scope a PHP scoping library to avoid dependency conflicts? That's a trick question 😅

The must rewrite EVERYTHING including the source itself, the autoloader (which must be shipped with the release) and the composer.json with the original dependencies removed.

And then you probably want to test everything by re-running the test suite within the rewritten codebase which still needs to rely on the development dependencies.

On April 1, 2025 at 13:48

What are you using for debugging post meta values in WordPress? Most of the existing plugins seem to be relying on legacy meta boxes for the output.

On March 31, 2025 at 19:39

Oh, well. Microsoft Office auto-update somehow replaced my Office 2021 install with Office 365 which disabled all editing. Had to do a complete reinstall. Good luck finding an official 2021 installer using any of their documentation which is all out of date.

Found a GitHub repo with up-to-date direct links to official downloads and handy commands to disable all telemetry and cloud functionality.

On March 28, 2025 at 19:39

The standard <link rel="alternate" /> tag seems like a good candidate for providing semantic links to markdown representation of website content to LLMs. Same with links to MCP endpoints, right?

On March 28, 2025 at 13:48

TIL: The Query Monitor plugin adds an HTTP header with a PHP backtrace showing what triggered a WordPress redirect — useful for tracking down the source of unexpected redirects.