Bosonica

154 POSTS

Exclusive articles:

How to Protect Email Addresses from Spam Bots in WordPress (the Modern, Accessible Way)

Publishing you@example.com in plain text is an open invitation to harvesting bots. The old fix, a document.write script, still works but breaks for screen readers and no-JavaScript visitors. Here's the current, accessible approach, starting with a function WordPress already ships.

Your Maintenance Page Returns 200, and Search Engines Are Indexing It

Maintenance mode hides your site from visitors. It does not, by default, tell search engines to come back later. The difference is one checkbox most people never find.

Choosing a WordPress Code Syntax Highlighting Plugin: Where It Runs Is Everything

Every comparison of these plugins ranks them on themes, languages and features. None of them checks the one property that decides whether a plugin can work for you at all.

When to Replace a WordPress Plugin with a Code Snippet (and When Not To)

Every active plugin is code that loads, updates, and can break. A small, well-scoped snippet is often the leaner answer, but only for the right jobs. Here's how to tell them apart.

Failed a Modern Web-Protocol Check? How to Fix HTTP/3, IPv6, Brotli and TLS

You ran the audit, and one or more of the modern protocols came back missing. The good news is that fixing them is almost never a rebuild: most are a single toggle in your host or CDN, or one response header. Here's how to fix each gap, in the order that actually matters, without breaking anything.

Breaking

The Code Snippets 403 That Comes From Your Host’s Firewall, Not WordPress

You change a few lines in a snippet, press Save, and get "Could not update snippet. Request failed with status code 403". Press Save on the unchanged snippet and it works. Your login is fine. Something between you and WordPress is reading the code itself.

Why a Flaky Test Passes Alone and Fails When the Machine Is Busy

Run the test by itself and it passes, every time. Run the whole suite in parallel and it fails, but only some days, and its failure looks exactly like a real bug. In our case the code was fine. The test was waiting on a clock.

Why Multisite Subsite Registration Sends Visitors to the Main Site

You put a "create an account" link on one site of a WordPress multisite. Visitors who click it land on the main site, which either says "Registration has been disabled" or signs them up there instead.

Why Your Pre-Push Hook Gets Slower Every Week, and What Fixes It

Every feature arrives with its tests. Nobody times the hook. Then one day git push takes 25 minutes for a one-line change, and the suite is still running one test at a time on a 16-core machine.