The wp_mail_content_type Filter Is a Site-Wide Switch, Not a Per-Message One

The failure mode is small enough to miss in a plugin diff and large enough to confuse a publisher for an afternoon: a plugin calls add_filter( 'wp_mail_content_type', ... ), returns 'text/html', sends its own formatted notification, and never removes the filter. Every subsequent wp_mail() call in that request — including core’s password-reset mail — is now handed to PHPMailer as HTML. The reset body was written for text/plain. The recipient sees markup, collapsed line breaks, or a link that no longer parses cleanly.

This is not a spam-filter story. The WordPress documentation describes the consequence as a compatibility problem with password-reset emails and warns of “unexpected problems” with mail from WordPress, plugins, and themes. Whether a malformed message is later classified or rejected downstream is a separate question that the content-type filter does not answer by itself. The useful thing to fix first is the scope of the filter.

Symptom

What the publisher reports is usually one of these:

  • A password-reset email arrives with literal angle brackets, or with all line breaks flattened into one paragraph.
  • A contact-form notification looks correct, but a core transactional email sent in the same request looks wrong.
  • Disabling the plugin that sends formatted mail also fixes the reset email, which makes the plugin look innocent.
  • wp_mail() returns true throughout, so logs show success while the rendered message is wrong.

The last point matters. The wp_mail() reference is explicit that a true return value does not mean the user received the email successfully; it means the method processed the request without errors. A successful handoff to PHPMailer is not evidence that the message was well-formed for its body.

Trace

Read the relevant part of wp_mail() in wp-includes/pluggable.php. The sequence is short and worth knowing by heart:

// If we don't have a Content-Type from the input headers.
if ( ! isset( $content_type ) ) {
    $content_type = 'text/plain';
}

/**
 * Filters the wp_mail() content type.
 *
 * @since 2.3.0
 *
 * @param string $content_type Default wp_mail() content type.
 */
$content_type = apply_filters( 'wp_mail_content_type', $content_type );
$phpmailer->ContentType = $content_type;

// Set whether it's plaintext, depending on $content_type.
if ( 'text/html' === $content_type ) {
    $phpmailer->isHTML( true );
}

Three things follow from that block.

First, the default is text/plain when no Content-Type header is supplied. The filter documentation states this directly: the default content type for wp_mail() is text/plain, which does not allow HTML, and the filter can change it.

Second, the filter receives only the current content-type string. It gets no recipient, subject, caller, or message context. A callback that returns 'text/html' unconditionally therefore changes the content type for every wp_mail() call that runs after it is added in the same request. That is the structural reason a plugin’s local formatting decision leaks into core mail.

Third, when the filtered value equals text/html, core also calls $phpmailer->isHTML( true ). The message is now treated as an HTML body. If the body was written as plain text — as core’s password-reset message is — the mismatch is baked in before PHPMailer ever touches the wire.

The filter is not confined to wp_mail(). wp_staticize_emoji_for_email() also passes the content type through wp_mail_content_type, so a plugin’s global filter affects that code path too. That is a useful confirmation when you are tracing why emoji handling changed at the same time as the reset email.

Root cause

The root cause is a category error: the plugin is using a site-wide filter as if it were a per-message setting.

The filter documentation itself demonstrates the correct shape of a filtered send, and the comment in the example is the whole lesson:

add_filter( 'wp_mail_content_type', 'wpdocs_set_html_mail_content_type' );
$to = 'sendto@example.com';
$subject = 'The subject';
$body = 'The email body content';
wp_mail( $to, $subject, $body );

// Reset content-type to avoid conflicts -- https://core.trac.wordpress.org/ticket/23578
remove_filter( 'wp_mail_content_type', 'wpdocs_set_html_mail_content_type' );

The wp_mail() reference repeats the warning in prose: reset wp_mail_content_type back to text/plain after sending, because failing to do so could lead to unexpected problems with emails from WordPress or plugins and themes.

A plugin that adds the filter at load time and never removes it has skipped that step. The filter remains active for the rest of the request, and any later core or plugin mail inherits the HTML content type.

The documentation also names the symptom directly: changing the content type to text/html “will cause problems with password reset emails.” It offers two remedies — adapt the password-reset body for HTML, or reset the content type back to text/plain after the custom send, either explicitly or by removing the callback with remove_filter().

Fix

There are two safe patterns. Pick the one that matches what the plugin actually needs.

Pattern A: pass the header on the one call

If the plugin needs HTML for its own message only, do not touch the filter. Pass the Content-Type header in the $headers argument of that specific wp_mail() call. The filter documentation shows this as an alternative to the filter:

$to      = 'sendto@example.com';
$subject = 'The subject';
$body    = '<p>The email body content</p>';
$headers = array( 'Content-Type: text/html; charset=UTF-8' );

wp_mail( $to, $subject, $body, $headers );

This is the per-message tool. It affects one message and leaves every other wp_mail() call in the request at its default.

Pattern B: scope the filter to the send

If the plugin must use the filter — for example, because it is reusing an existing code path that expects the filter — add it immediately before the send and remove it immediately after:

function myplugin_set_html_content_type() {
    return 'text/html';
}

add_filter( 'wp_mail_content_type', 'myplugin_set_html_content_type' );
wp_mail( $to, $subject, $body );
remove_filter( 'wp_mail_content_type', 'myplugin_set_html_content_type' );

The filter documentation’s own example uses this shape, and the wp_mail() reference endorses the reset. The failure mode is the version without the remove_filter().

What not to do

Do not add the filter at plugin load and rely on the site “mostly sending HTML anyway.” The filter has no message context, so “mostly” is not a property it can express. If the site as a whole wants HTML mail, that is a deliberate site-wide decision, and the password-reset body must be adapted for HTML as the documentation describes. That is a different project from a plugin formatting its own notification.

Verification

For a self-maintained install, the first move is a code search, not a plugin toggle. Find every callback on the filter and check whether each one is removed:

wp plugin list --status=active --field=name | while read slug; do
  grep -RIn "wp_mail_content_type" "wp-content/plugins/$slug" 2>/dev/null \
    | sed "s|^|$slug: |"
done

Read the hits. A callback added inside a function that also calls wp_mail() and then remove_filter() is the safe shape. A callback added at file scope or on plugins_loaded with no matching remove_filter() is a candidate for the symptom.

To confirm the effect on a specific message, hook phpmailer_init and inspect the object before it is sent. The hook fires after PHPMailer is initialized and receives the instance by reference:

add_action( 'phpmailer_init', function ( $phpmailer ) {
    error_log( sprintf(
        'phpmailer_init: ContentType=%s isHTML=%s Subject=%s',
        $phpmailer->ContentType,
        $phpmailer->ContentType === 'text/html' ? 'true' : 'false',
        $phpmailer->Subject
    ) );
} );

Trigger a password reset and read the log line. If ContentType is text/html for a reset message, the filter is leaking. If it is text/plain for the reset and text/html only for the plugin’s own message, the scoping is correct.

Finally, do not treat a true return from wp_mail() as verification. The reference is clear that the return value only means the request was processed without errors. Verify the rendered message — the reset email in a real inbox, or the captured message in your mail log — not the boolean.

FAQ

Does the filter cause emails to be marked as spam?

The retrieved WordPress documentation does not make that claim. It documents a compatibility problem with password-reset emails and warns of unexpected problems with mail from WordPress, plugins, and themes. Spam classification and rejection are downstream decisions made by receiving systems, and the content-type filter does not by itself establish why a particular message was filtered. Treat the malformed body as the thing you can prove and fix; treat deliverability as a separate investigation.

Why does the plugin’s own email look fine while the reset email does not?

Because the plugin’s body was written for HTML and the reset body was written for plain text. The filter changes the declared content type for both; only one body matches it. That asymmetry is the tell that the filter is global and the bodies are not.

Can I just set the filter to text/html site-wide and adapt the reset email?

Yes, and the documentation describes that remedy: modify the password-reset body so it works with text/html. That is a site-wide decision with site-wide consequences, and it should be made deliberately rather than as a side effect of a plugin’s notification code.

Where should a plugin add headers instead?

For per-message headers, use the $headers argument of wp_mail(). For changes that need the PHPMailer object itself — SMTP configuration, custom headers, multipart bodies — use the phpmailer_init action, which fires after PHPMailer is initialized and passes the instance by reference.

What about emoji in emails?

wp_staticize_emoji_for_email() also passes the content type through wp_mail_content_type. A global filter affects that path too, which is one more reason to scope the filter to the send that needs it.

Sources

  • WordPress Developer Reference, wp_mail_content_type filter — default content type, the password-reset warning, the remove_filter() example, and the $headers alternative.
  • WordPress Developer Reference, wp_mail() — source of the content-type block, the reset warning, and the note that a true return does not mean delivery.
  • WordPress Developer Reference, phpmailer_init — the action for working with the PHPMailer instance directly.
  • WordPress Developer Reference, wp_staticize_emoji_for_email() — the second code path that runs the same filter.

The ‘There Is Motion at Your Front Door’ Shirt Is a Notification Without a Handler

Editorial note: This publication and Quirky Cotton Collective share an owner. This is not an independent review.

The shirt prints a white rounded notification banner with a bell icon and the sentence There is motion at your front door. Beneath it sits a circular, green-tinted doorbell-camera view: an orange tabby, eyes wide, nose nearly touching the lens, porch siding and lights receding behind it. That is the whole design. No caption underneath, no punchline, no second panel.

What makes it worth looking at closely is that the artwork is a state transition rendered as a garment. A sensor fired. A notification was composed. A human is being told something happened at a boundary. And the thing that happened is a cat. The joke is not the cat, exactly. The joke is the gap between the formality of the alert and the triviality of the event — and, more precisely, the gap between an alert and any actual handling of it.

The banner is the contract; the cat is the payload

Read the two halves separately. The top half is infrastructure language: a bell glyph, a rounded card, a declarative sentence in the present tense. It is the visual grammar of a push notification, a doorbell app, a home-security dashboard. It promises that something crossed a threshold and that you, the recipient, are now on the hook for deciding what it means.

The bottom half is the evidence. A camera view, circular like a peephole or a lens, tinted green the way cheap night vision and doorbell feeds often look. The tabby is not doing anything dramatic. It is simply there, enormous in the frame, staring back. The porch behind it is ordinary. The lights are on. Nothing is on fire.

My reading — and this is interpretation, not a claim about the design’s intent or history — is that the shirt is funny because it is a complete alert pipeline with the response layer removed. The notification is accurate. The motion is real. The system worked. And the correct human response is to look at a cat and go back to what you were doing. The banner and the image are both true, and together they are absurd, because the banner’s tone implies urgency that the image quietly refuses.

Why this reads as a systems joke even though it isn’t one

I spend my working life tracing alerts to the thing that actually caused them. A page fires at 2 a.m.; you open the dashboard; the cause is a cron job that ran twice, or a cache key that expired a minute early, or a webhook that retried because the first response was slow. The alert was correct. The severity was wrong. The handler — the human — was summoned for something that did not need summoning.

The shirt is that experience compressed into two stacked images. The banner says motion, which is technically a security-relevant event. The camera shows a cat, which is technically motion. Nothing in the design is lying. The mismatch is entirely in the implied stakes.

I want to be careful here: the shirt does not demonstrate anything about software, monitoring, security systems, or engineering practice. It is a meme about a doorbell camera and a cat. But it is legible to people who spend their days deciding which alerts deserve a response, because it dramatizes the exact question those people ask constantly — is this signal worth the interruption it just caused? — and answers it with a face.

The wording is doing more work than it looks like

Consider the sentence itself: There is motion at your front door. Not “Someone is at your door.” Not “Package detected.” Not “Motion detected.” The phrasing is oddly flat and oddly precise at once. It reports a category of event rather than an interpretation of it. Motion is what the sensor measures. At your front door is where the sensor lives. The sentence is a raw event record dressed in the grammar of a friendly alert.

That flatness is what lets the cat land. If the banner said “Intruder alert,” the image would be a subversion. Because the banner says only what the sensor knows, the image is not a contradiction — it is the missing context. The system reported motion. The camera supplied the identity of the motion. The identity turned out to be a cat. The pipeline is complete; the outcome is just very small.

There is a useful distinction buried in that, and it is the one I keep coming back to when I look at this design: the difference between a slogan and a usable promise. A slogan asserts a mood. A usable promise tells you what will happen and what you are expected to do about it. The banner on this shirt is closer to a usable promise than most novelty text — it names an event, a location, and an implied recipient — but it stops one step short, because it never says what the recipient should do. That missing step is where the cat lives.

The circular frame and the green tint

The visual choices in the lower half are worth naming because they are what make the image read as a camera feed rather than an illustration. The view is circular, which evokes a fisheye lens or a peephole — a bounded aperture through which a wide, distorted scene is compressed. The green cast is the color of low-light sensor output, the look of a feed that is doing its best with very little light. The porch siding and lights behind the cat establish depth: the cat is close, the house is farther, and the camera is somewhere in between, mounted at door height.

None of that is decorative. Each element reinforces the claim that this is surveillance footage, not a portrait. The cat is not posing. It is being recorded. The wide eyes and the extreme proximity read as the animal’s reaction to the lens — curiosity, maybe, or the particular blank stare of a creature that has noticed it is being watched. The design does not need to explain the joke because the framing does it: this is what the doorbell saw.

I would not claim the artwork is a commentary on surveillance, domestic monitoring, or the normalization of cameras at the front door. It is a meme. But the meme works because it borrows the visual authority of those systems and then spends that authority on a cat, and the borrowing is precise enough that the joke lands even for someone who has never owned a doorbell camera.

What the shirt is, and what it isn’t

The object itself is a standard t-shirt from Quirky Cotton Collective, listed as There Is Motion At Your Front Door Funny Cat Doorbell Meme. The design is printed as described above: the notification banner, the bell, the sentence, the circular green-tinted camera view, the orange tabby, the porch behind it. That is what the listing shows and what the artwork contains.

What the shirt is not is a statement about monitoring, a security product, a claim that cats improve anything, or a piece of evidence about how alerting systems should be designed. It is a joke about a specific kind of alert — the one that turns out to be nothing — and it is funny because the alert was right and the stakes were tiny. If you have ever opened a dashboard expecting an incident and found a cron job, or answered a doorbell expecting a person and found a cat, the design is already legible to you. If you haven’t, the image still works, because a wide-eyed tabby filling a camera lens is a complete joke on its own.

The banner is the contract. The cat is the payload. The shirt is what happens when the handler never arrives — and nothing needed handling after all.

wp_after_insert_post Is a Trigger, Not a Worker: Deferring a Broken-Link Audit

The symptom: saves get slower, and the audit still misses links

You hook a broken-internal-link check to wp_after_insert_post. Every save now waits on a loop of HTTP requests to your own permalinks. The editor spinner hangs. Then you notice the audit reports links that are fine, misses links that are broken, and runs three times for one click of Update.

The trace is not subtle. The hook fires from more than one save path, it fires for creates as well as updates, and the save path itself can be suppressed by callers. Treating it as a synchronous worker is the root cause. The fix is to treat it as a trigger: enqueue a post ID, run the audit elsewhere, store the result.

What the hook actually guarantees

The WordPress developer reference for wp_after_insert_post states that it fires once a post, its terms and meta data has been saved. It passes four arguments:

do_action( 'wp_after_insert_post', $post_id, $post, $update, $post_before );

So the callback receives the post ID, the post object, a boolean indicating whether this is an update, and the prior post object — null for new posts. That is the contract. It does not promise that the post content is unchanged since the last audit, that the save came from the editor, or that the hook will fire for every write to the posts table.

That last point matters. The hook is fired by wp_insert_post, which is the function wp_update_post delegates to. The reference for wp_insert_post documents a $fire_after_hooks parameter, defaulting to true, that controls whether the after-insert hooks fire. The reference for wp_update_post shows it passing that argument straight through:

return wp_insert_post( $postarr, $wp_error, $fire_after_hooks );

Any code that calls either function with $fire_after_hooks = false saves content without your callback running. The audit cannot assume it is the only observer of a content change.

Trace: the REST controller fires the hook itself

The block editor saves through the REST API. The source for WP_REST_Posts_Controller::update_item shows the sequence: it calls wp_update_post with the after hooks disabled, then handles format, featured media, sticky, template, terms, and meta, and only then calls the hook directly:

$post_id = wp_update_post( wp_slash( (array) $post ), true, false );
// ... terms, meta, featured media, template ...
wp_after_insert_post( $post, true, $post_before );

This is deliberate. The hook fires after the terms and meta are saved, so a callback sees the final state of the post rather than a half-written one. That is the useful guarantee. But the same controller’s create path also calls it:

wp_after_insert_post( $post, false, null );

So a callback that assumes $update === true will skip newly created posts. A callback that assumes it is running inside an editor save will be wrong for REST clients, WP-CLI imports that use wp_insert_post, and any other code path that reaches the same function.

If you want to see which routes and methods your install exposes, the REST API routes and endpoints documentation notes that the index at /wp-json/ reports the available routes, supported HTTP methods, and registered endpoints. That is a faster check than guessing from the editor’s network panel.

Root cause: the hook is a save notification, not a change event

Three properties of the hook make inline auditing fail:

  1. It fires per save, not per content change. A save that changes only the title still fires it. A save that changes nothing still fires it. The hook does not tell you what changed; $post_before lets you compare, but comparing full content on every save is work you may not need.
  2. It fires from multiple callers. The REST controller, wp_update_post, and direct wp_insert_post calls all reach it. Some callers suppress it. The callback cannot infer the user’s intent from the hook arguments alone.
  3. It runs inside the save request. Any HTTP work you do in the callback is added to the response time of the save. If the audit checks twenty internal links and each check takes a moment, the editor waits for all twenty.

The fix is architectural: the hook enqueues work, and a separate runner performs the audit. The hook’s job is to say “this post was saved”; the runner’s job is to decide whether the post needs checking and to do it outside the save request.

Fix: enqueue a post ID, dedupe, and run the audit elsewhere

The following callback does three things: it skips revisions and autosaves, it dedupes by post ID using a short-lived transient, and it schedules a single event. It does not perform any HTTP requests.

add_action( 'wp_after_insert_post', 'jv_enqueue_link_audit', 10, 4 );

function jv_enqueue_link_audit( $post_id, $post, $update, $post_before ) {
    if ( wp_is_post_revision( $post_id ) ) {
        return;
    }
    if ( 'auto-draft' === $post->post_status ) {
        return;
    }
    if ( ! in_array( $post->post_type, array( 'post', 'page' ), true ) ) {
        return;
    }

    $lock_key = 'jv_link_audit_lock_' . $post_id;
    if ( false !== get_transient( $lock_key ) ) {
        return;
    }
    set_transient( $lock_key, 1, 5 * MINUTE_IN_SECONDS );

    if ( ! wp_next_scheduled( 'jv_run_link_audit', array( $post_id ) ) ) {
        wp_schedule_single_event( time() + 30, 'jv_run_link_audit', array( $post_id ) );
    }
}

Two details are load-bearing. The transient is a debounce, not a permanent lock: it collapses rapid successive saves into one scheduled run, and it expires so a later edit can schedule again. The wp_next_scheduled check prevents duplicate events for the same post ID. Neither is a substitute for the other; the transient handles the burst, the scheduled-event check handles the queue.

The runner is a separate callback on the custom action. It reads the post’s current stored content, extracts internal links, checks them, and stores the result. It does not call wp_update_post unless it needs to write a meta flag, and if it does, it follows the warning in the wp_update_post reference: calling wp_update_post from inside a save callback can create an infinite loop, and the documented remedy is to remove the hook before updating and re-add it afterward. The same discipline applies here — unhook the enqueue callback before any write that would fire it again.

Storing the result: post meta versus a custom table

The audit result should be stored, not recomputed on every page view. The simplest place is post meta: a key such as _jv_broken_links holding a serialized array of URL, status, and the post’s content hash at the time of the check. The wpdb class reference is the relevant primary source if you prefer a custom table; it documents the insert, update, and query methods and the requirement to escape untrusted values with prepare().

Post meta is a design choice, not documented guidance. It has one practical advantage: it travels with the post through export and import, and it is visible to any code that already reads post meta. A custom table has the advantage of indexed queries if you need to list every post with a broken link across a large install. For a small-to-mid publishing team, post meta is usually enough; the query below finds posts whose stored audit result is non-empty:

SELECT p.ID, p.post_title, pm.meta_value
FROM wp_posts p
JOIN wp_postmeta pm ON pm.post_id = p.ID
WHERE pm.meta_key = '_jv_broken_links'
  AND pm.meta_value != ''
  AND p.post_status = 'publish'
ORDER BY p.post_modified DESC;

If you store the content hash alongside the result, the runner can skip the HTTP checks when the hash matches the current content. That is the difference between an audit that runs on every save and an audit that runs when the content actually changed.

Verification: confirm the hook fired and the job ran

Query Monitor will show the hook firing on the save request and the scheduled event running on a later request. If you do not have Query Monitor, log the enqueue and the runner separately:

add_action( 'jv_run_link_audit', 'jv_run_link_audit', 10, 1 );

function jv_run_link_audit( $post_id ) {
    error_log( sprintf( 'jv_link_audit start post=%d', $post_id ) );
    // ... extract, check, store ...
    error_log( sprintf( 'jv_link_audit done post=%d', $post_id ) );
}

From WP-CLI, you can confirm the scheduled event exists and run it manually:

wp cron event list --fields=hook,next_run_relative,args
wp cron event run jv_run_link_audit --due-now

The first command should show one pending event per post ID after a burst of saves, not one per save. The second runs the due events immediately, which is useful when you have disabled WP-Cron in wp-config.php and drive it from the system scheduler. The retrieved sources do not document WP-Cron reliability or timing, so treat the scheduling interval as a tuning parameter rather than a guarantee.

What to log and what to show editors

Log the post ID, the content hash, the number of links checked, and the number of failures. Do not log the full post content. If the audit writes a meta flag, surface it in the editor as a notice or a column in the posts list; the point of storing the result is that an editor can see it without triggering a new run.

The audit should also record the URL and the HTTP status for each failure, so the editor can distinguish a 404 from a timeout from a redirect. A link that returns 200 after a redirect is not broken in the sense that matters to a reader, but it is worth knowing about. That distinction belongs in the stored result, not in the save request.

FAQ

Does wp_after_insert_post fire for block editor saves?

Yes. The REST posts controller calls it after handling terms, meta, featured media, and template, as shown in the update_item source. The block editor saves through that controller.

Why does my callback run more than once per save?

Because the hook fires from more than one path, and because a single editor action can produce more than one save request. The hook arguments do not tell you which path invoked it. Dedupe by post ID and debounce with a transient rather than trying to infer the caller.

Can I skip the audit for revisions and autosaves?

You can check wp_is_post_revision( $post_id ) and the post status in the callback, as the example above does. The retrieved sources do not document the hook’s behavior for every autosave path, so verify on your install with Query Monitor before relying on a skip rule.

Should the audit run on every save or only when content changes?

Only when content changes, if you can afford to store a content hash. The hook does not tell you what changed; comparing the stored hash to the current content is the reliable way to decide whether the HTTP checks are needed.

What if another plugin calls wp_update_post with $fire_after_hooks = false?

Your callback will not run for that save. The audit is a notification-driven process, not a guarantee that every write is observed. If you need coverage for those writes, run a periodic sweep with WP-CLI in addition to the hook-driven audit.

The ‘I Had Potential’ Shirt Is a Diagram of Stored Energy, Not a Slogan

The shirt shows four words in white capitals — I HAD POTENTIAL — above a white curved ramp that descends from left to right. At the upper left ledge, a dashed empty circle marks where a ball used to sit. At the lower right, on the flat run-out, a solid white ball rests. The ramp is curved, not a straight diagonal. That curve is the whole argument.

Most slogan shirts ask you to agree with a sentence. This one asks you to read a diagram. The sentence is the caption; the drawing is the claim. And the drawing is doing something more precise than the caption lets on, which is why it works as an object for people who spend their days tracing state through systems.

What the drawing actually shows

In physics, potential is not a compliment. It is a quantity: energy stored by virtue of position in a field. A ball at the top of a ramp has gravitational potential energy relative to the bottom. The dashed circle at the upper left is the ball at that starting position — the place where the potential existed. The solid ball at the lower right is the same ball after the ramp has done its work. The energy didn’t disappear. It converted. The ball is lower, and it is moving, or it has arrived, or it has stopped. The diagram doesn’t say which. It only says the height is gone.

That is a more interesting joke than “I used to be smart.” The shirt is not claiming the potential was wasted. It is showing the potential spent — converted into position, motion, heat, noise, whatever the run-out absorbed. The dashed circle is the counterfactual: here is where the ball would still be if nothing had happened. The solid ball is the actual. The gap between them is the punchline, and it is drawn, not written.

I read the dashed circle as a ghost of the initial condition. That is interpretation, not a physics claim about this specific garment. But the visual grammar supports it: dashed outlines conventionally mark something absent, projected, or no longer present. The solid ball is the current state. The shirt is a before-and-after diagram with the “before” left as an outline.

Why the curve matters

A straight diagonal would have made this a different joke. A straight ramp implies constant acceleration and a clean, predictable slide — the kind of diagram you draw when you want the math to be easy. A curved ramp implies a changing slope, which means the ball’s acceleration changes as it descends. The curve is doing real work: it makes the descent look like a process rather than a drop.

That is the difference between a slogan and a usable promise. A slogan says “I had potential” and stops. A diagram says “here is the initial state, here is the path, here is the final state” and lets you inspect the transition. The curve is the part you can argue with. Was the ramp too steep? Too shallow? Did the ball roll cleanly or bounce? The drawing doesn’t answer, but it gives you the shape of the question.

For readers who spend their days looking at state machines and invalidation paths, this is familiar territory. A dashed circle is a cache entry that used to be valid. A solid ball is the value after the transform. The ramp is the code path between them. The shirt is a minimal diagram of a state transition, and the joke is that the transition is irreversible.

The caption and the drawing disagree, slightly

“I had potential” is past tense and first person. It frames the loss as personal and complete. But the drawing shows the ball still present, just lower. The potential didn’t vanish; it converted. The caption is the voice of the ball, and the ball is being melodramatic. That gap between the caption’s self-pity and the diagram’s neutrality is where the humor lives. The drawing is more honest than the sentence.

This is why the shirt reads as sarcastic rather than sad. The caption claims a loss; the diagram shows a conversion. The wearer is not actually asking you to mourn. They are showing you a diagram and letting you notice that the caption is overselling the tragedy. The dashed circle is the only thing that’s actually gone, and it was never a ball — it was a position.

What this object is for

I would wear this to a standup. Not because it says anything about software, but because it says something about how technical people talk about their own trajectories. “I had potential” is the sentence you say when a system you built is now in maintenance mode, or when a clean design got shipped with three workarounds, or when the ramp turned out to be curved and you didn’t model the curve. The shirt is a diagram of that feeling, drawn with the minimum number of marks.

It is also, frankly, a good test of whether someone reads diagrams or reads slogans. The people who get it will point at the dashed circle. The people who don’t will read the words and nod. Both are fine, but only one is looking at the actual artwork.

If you want the object itself, the I Had Potential shirt is listed under Quirky Cotton Collective. The design is white on the garment shown, with the ramp and ball as described. I am not going to tell you it will improve your posture or your code review comments. It is a diagram you can wear, and the diagram is the point.

The failure mode of a slogan shirt

The common failure mode of a slogan shirt is that the words have to carry the whole joke, and words are bad at showing state. “I had potential” alone is a complaint. With the ramp and the ball, it becomes an observation: the potential was real, the conversion happened, and the dashed circle is the only evidence of what was lost. The drawing gives the sentence a failure mode — a specific way to be wrong — and that is what makes it funny instead of just bitter.

That is the argument I would make for this shirt over a plain text version: the diagram is the part that rewards a second look. The caption is the log line. The ramp is the stack trace. The dashed circle is the exception that was caught and swallowed. And the solid ball at the bottom is the state you are actually in, which is not the same as the state you started from, and not the same as the state you imagined.

Editorial note: This publication and Quirky Cotton Collective share an owner.

Your NOT EXISTS meta_query Isn’t a NULL Bug: Reading the SQL WordPress Actually Generates

The report is always the same shape. A WP_Query with a meta_query using 'compare' => 'NOT EXISTS' returns a post that, in the editor or in a quick get_post_meta() call, plainly has the key. The first instinct is to blame MySQL NULL semantics: NULL = NULL is NULL, NULL <> NULL is NULL, so surely the comparison is falling through and matching rows it shouldn’t.

That diagnosis is wrong, and it sends people down a rabbit hole of COALESCE() patches and posts_where filters that don’t address the actual query. Core does not compare meta_value to anything for a NOT EXISTS clause. It builds a LEFT JOIN and tests the joined row’s ID column with IS NULL — the one NULL test MySQL handles correctly. If a post with the key is coming back, the cause is almost always in how the clause was assembled, not in how MySQL treats NULL.

This is a trace of what core actually emits, the three ways the query shape drifts from what you intended, and a diagnostic recipe that starts with the generated SQL instead of the query args.

What core actually generates for NOT EXISTS

WP_Meta_Query is the class that turns a meta_query array into JOIN and WHERE fragments attached to the primary query. The WordPress developer reference describes it as a helper that filters results “by generating JOIN and WHERE subclauses to be attached to the primary SQL query string” (WP_Meta_Query reference).

For a first-order clause with 'compare' => 'NOT EXISTS', WP_Meta_Query::get_sql_for_clause() takes a specific branch. The source, as published in the developer reference, reads:

// JOIN clauses for NOT EXISTS have their own syntax.
if ( 'NOT EXISTS' === $meta_compare ) {
    $join .= " LEFT JOIN $this->meta_table";
    $join .= $i ? " AS $alias" : '';
    // ... ON ( primary.id = alias.meta_id AND alias.meta_key = %s )
}

And the matching WHERE fragment:

if ( 'NOT EXISTS' === $meta_compare ) {
    $sql_chunks['where'][] = $alias . '.' . $this->meta_id_column . ' IS NULL';
}

Both quotes are from the get_sql_for_clause() reference page. The important detail: the test is on meta_id, not meta_value. meta_id is the primary key of wp_postmeta and is never NULL for a row that exists. So the IS NULL test is true only when the LEFT JOIN found no matching row — which is exactly the semantics you asked for.

This is also why the MySQL NULL documentation is a red herring here. MySQL’s manual is correct that “you cannot use arithmetic comparison operators such as =, <, or <> to test for NULL” (MySQL 8.0 Reference Manual, 5.3.4.6). But core isn’t doing that. It’s using IS NULL, which the same manual documents as the correct operator. The NULL semantics are being handled correctly; the bug is elsewhere.

The LEFT JOIN promotion rule

There is a second piece of core behavior that matters when a meta_query has more than one clause. WP_Meta_Query::get_sql() contains this block:

/*
 * If any JOINs are LEFT JOINs (as in the case of NOT EXISTS), then all JOINs should
 * be LEFT. Otherwise posts with no metadata will be excluded from results.
 */
if ( str_contains( $sql['join'], 'LEFT JOIN' ) ) {
    $sql['join'] = str_replace( 'INNER JOIN', 'LEFT JOIN', $sql['join'] );
}

Source: WP_Meta_Query::get_sql() reference. The comment is the design intent: if one clause needs a LEFT JOIN to preserve posts with no meta, every other clause in the same query is promoted to LEFT JOIN too, so the whole query doesn’t silently drop those posts.

This is where the query shape can drift from what you expected. A second clause that you wrote as an EXISTS or a value comparison is now a LEFT JOIN with a WHERE condition on the joined alias. Whether that condition still filters as you intended depends on how the WHERE fragment is written — and on whether the second clause’s WHERE is parenthesized correctly against the first clause’s IS NULL test.

If you have a meta_query with a NOT EXISTS clause and a second clause, and the result set includes posts that have the first key, the second clause is the first place to look. Not MySQL NULL handling.

Failure mode 1: a second clause changes the join shape

Consider a query that asks for posts without a _editorial_reviewed key, but only among posts that have a _editorial_status key:

$q = new WP_Query( array(
    'post_type'      => 'post',
    'posts_per_page' => 20,
    'meta_query'     => array(
        'relation' => 'AND',
        array(
            'key'     => '_editorial_reviewed',
            'compare' => 'NOT EXISTS',
        ),
        array(
            'key'     => '_editorial_status',
            'value'   => 'draft',
            'compare' => '=',
        ),
    ),
) );

Because the first clause produces a LEFT JOIN, the second clause’s INNER JOIN is rewritten to LEFT JOIN. The second clause’s WHERE fragment is still alias.meta_value = 'draft', but now it’s evaluated against a LEFT JOINed row that may be NULL. A post with no _editorial_status row at all will have alias.meta_value as NULL, and NULL = 'draft' evaluates to NULL, which is not true — so the post is excluded. That part is fine.

The problem is the opposite case: a post that has _editorial_status = 'draft' but also has _editorial_reviewed. The first clause’s LEFT JOIN matches the _editorial_reviewed row, so alias.meta_id is not NULL, and the IS NULL test fails. The post is excluded. That’s correct behavior for the query as written.

Where it goes wrong is when the second clause is itself a NOT EXISTS or a negative comparison, and the two clauses end up sharing a table alias through find_compatible_table_alias(). The alias reuse is an optimization, but it means the WHERE fragments from both clauses are evaluated against the same joined row. If the first clause’s IS NULL test and the second clause’s condition are not parenthesized as a unit, the boolean logic can produce a row that satisfies one clause’s intent but not the other’s.

The fix is not to patch the SQL. It’s to read it. Dump the generated fragments and see what core actually built.

Failure mode 2: the value is silently ignored

This one is documented in the source and still surprises people. In get_sql_for_clause(), the meta_value switch has this case:

// 'value' is ignored for NOT EXISTS.
case 'NOT EXISTS':
    $where = '';
    break;

Source: get_sql_for_clause() reference. If you write:

array(
    'key'     => '_editorial_reviewed',
    'value'   => 'yes',
    'compare' => 'NOT EXISTS',
)

the 'value' => 'yes' is discarded. The clause means “no row with this key exists,” not “no row with this key and this value exists.” If you wanted the latter, you need a different construction — typically a NOT IN subquery against the post IDs that do have the key/value pair, or a second query that fetches those IDs and passes them to post__not_in.

This is not a NULL bug. It’s a documented behavior of the operator. But it produces exactly the symptom people describe: a post that has the key comes back, because the query never tested the value.

Failure mode 3: the key string doesn’t match

The third failure mode is the least interesting and the most common. The post “has the key” according to the editor or a get_post_meta() call, but the key string the query tests is not byte-identical to the key string stored in wp_postmeta.

Two things make this easy to miss. First, get_post_meta() is documented as case sensitive due to WordPress caching, even when the database collation is case insensitive:

Please note that if a db collation is case insensitive (has with suffix _ci) then update_post_meta and delete_post_meta and get_posts() will update/delete/query the meta records with keys that are upper or lower case. However get_post_meta will apparently be case sensitive due to WordPress caching.

Source: get_post_meta() reference. So a query with 'key' => '_Editorial_Reviewed' may match a stored _editorial_reviewed row in the database (collation-dependent), while a get_post_meta() call with the same mixed-case key returns nothing from cache. The two checks disagree, and the disagreement looks like a query bug.

Second, whitespace and near-duplicate keys are real. A key stored as _editorial_reviewed (trailing space) or _editorial_reviewed_v2 will not match a query for _editorial_reviewed. The admin UI may render them identically if the field label is the same.

The fix is to stop trusting get_post_meta() as the source of truth for “does this key exist” and query wp_postmeta directly. See the diagnostic recipe below.

Diagnostic recipe: dump the SQL first

Before changing query args, before adding a posts_where filter, before suspecting core, get the generated SQL. WP_Meta_Query::get_sql() applies a filter, get_meta_sql, to the generated fragments, and that filter is the cleanest hook for inspection:

add_filter( 'get_meta_sql', function( $sql, $queries, $type, $primary_table, $primary_id_column, $context ) {
    if ( ! is_admin() && isset( $_GET['debug_meta_sql'] ) ) {
        error_log( 'JOIN: ' . $sql['join'] );
        error_log( 'WHERE: ' . $sql['where'] );
        error_log( 'QUERIES: ' . print_r( $queries, true ) );
    }
    return $sql;
}, 10, 6 );

The filter signature is documented on the get_sql() reference page. The $_GET guard keeps the logging scoped to a single request; remove it or replace it with a constant check for production debugging.

Read the output in this order:

  1. Count the LEFT JOINs. If there is more than one, the promotion rule fired. That’s expected when a NOT EXISTS clause is present, but it means every other clause’s WHERE fragment is now evaluated against a possibly-NULL joined row.
  2. Check the alias on each WHERE fragment. If two clauses share an alias, they are being evaluated against the same joined row. That’s the alias-reuse optimization, and it’s where boolean logic can drift.
  3. Look for IS NULL on a meta_id column. That’s the NOT EXISTS test. If it’s present and the alias matches the LEFT JOIN for the key you care about, the clause is built correctly.
  4. Look for a meta_value condition on the same alias. If the NOT EXISTS clause also has a meta_value condition, the value was not ignored — which means the clause is not actually a NOT EXISTS clause, or a second clause is contributing that condition.

If the SQL looks correct and the post still comes back, the problem is in the data, not the query. Move to the next step.

Verify the meta rows directly

Take the post ID that shouldn’t be in the result set and query wp_postmeta for every row with a key that looks like the one you tested. Use a LIKE with wildcards on both sides to catch whitespace and near-duplicates:

SELECT meta_id, post_id, CONCAT('[', meta_key, ']') AS key_with_brackets, meta_value
FROM wp_postmeta
WHERE post_id = 12345
  AND meta_key LIKE '%editorial_reviewed%';

The CONCAT with brackets makes leading and trailing whitespace visible. If the key is stored as _editorial_reviewed , the brackets will show it. If the key is stored as _Editorial_Reviewed, the case will show it.

If the row exists with the exact key the query tested, and the generated SQL shows a correct LEFT JOIN ... IS NULL on that key, then the post should not be in the result set. At that point the query is not the problem — something else is modifying the results. Check for a posts_results or the_posts filter, a caching layer returning a stale result set, or a pre_get_posts hook that is altering the query after your args are set.

If the row exists with a different key string, the query is correct and the data is wrong. Fix the data, not the query.

WP-CLI checks for self-maintained installs

Two commands cover most of the ground. First, list every distinct meta key that contains the substring you’re testing, with counts, to find near-duplicates:

wp db query "SELECT meta_key, COUNT(*) AS n FROM wp_postmeta WHERE meta_key LIKE '%editorial_reviewed%' GROUP BY meta_key ORDER BY n DESC;"

Second, for a specific post, dump the raw rows without going through the meta cache:

wp db query "SELECT meta_id, meta_key, meta_value FROM wp_postmeta WHERE post_id = 12345 AND meta_key LIKE '%editorial_reviewed%';"

Both commands bypass get_post_meta() and its cache, which is the point. The cache is where the case-sensitivity discrepancy documented above lives.

What to change, and what not to

If the generated SQL shows a correct LEFT JOIN ... IS NULL on the key you tested, and the direct wp_postmeta query shows no row with that exact key for the returned post, then the query is not the cause. Do not add a posts_where filter to “fix” NULL handling. Do not wrap the key in COALESCE(). Do not switch to a raw $wpdb query. Those changes address a problem that isn’t there, and they make the next debugger’s job harder.

If the generated SQL shows a second clause contributing a WHERE condition on the same alias as the NOT EXISTS clause, the fix is to restructure the meta_query. The most reliable pattern for “posts without key A, among posts with key B” is two queries: one to fetch the post IDs that have key A, and one WP_Query with 'post__not_in' => $ids plus the key B condition. It’s two round trips instead of one, but the SQL is unambiguous and the result set is easy to verify.

If the generated SQL shows the NOT EXISTS clause with a meta_value condition, the value was not ignored — which means the clause is not actually reaching the NOT EXISTS branch. Check the compare string for case and whitespace. 'not exists' is not 'NOT EXISTS'; the source uppercases the compare value, but a typo like 'NOT_EXISTS' will fall through to the default '=' operator and produce a value comparison instead.

If the direct wp_postmeta query shows the key exists with a different string than the one tested, fix the data. A one-off UPDATE or a wp post meta update call is the right tool. The query was correct; the stored key was not.

Why the NULL framing persists

The NULL explanation is appealing because it’s technically true in general and it matches the surface symptom. MySQL’s manual is clear that comparisons with NULL return NULL, and that NULL is not equal to anything, including itself. A developer who knows that and sees a NOT EXISTS query returning a post with the key will reasonably conclude that the NULL comparison is the culprit.

But the retrieved core source shows the operator is implemented with IS NULL on the joined meta_id column, not with a comparison on meta_value. The NULL semantics are handled. The failure modes are in clause assembly, value handling, and key matching — three places that a NULL-focused diagnosis will never look.

The practical takeaway for a self-maintained install is to make the generated SQL the first artifact you inspect, not the last. A five-line get_meta_sql filter and a direct wp_postmeta query will resolve most of these reports in a single request. The NULL theory, however well-intentioned, costs more time than it saves.

FAQ

Does NOT EXISTS behave differently from the older meta_compare shorthand?

No. Both routes end up in WP_Meta_Query::parse_query_vars() and then get_sql_for_clause(), which is where the LEFT JOIN and IS NULL construction lives. The generated SQL is the same shape regardless of whether you pass 'compare' => 'NOT EXISTS' inside a meta_query array or use the older top-level meta_key / meta_compare arguments.

Can a NOT EXISTS clause match a row where meta_value is NULL?

No, and this is the part the NULL theory gets backwards. The IS NULL test is on meta_id, which is the primary key of wp_postmeta and is never NULL for an existing row. A row with a NULL meta_value still has a non-NULL meta_id, so the LEFT JOIN matches it and the IS NULL test fails. The post is correctly excluded. If you want to match posts whose key exists but whose value is NULL, that’s a different query — typically 'compare' => '=' with 'value' => null won’t work either, because of the same NULL comparison rules. You need a raw $wpdb query with meta_value IS NULL.

Why does the same query return different results on staging and production?

Two likely causes. First, the database collation may differ. A _ci collation makes key comparisons case insensitive in SQL, while get_post_meta() remains case sensitive due to caching, as documented on the get_post_meta() reference. Second, the meta rows themselves may differ — a key that was written with different casing or whitespace on one environment will not match a query that tests the canonical form. Run the wp_postmeta LIKE query on both environments and compare the key_with_brackets output.

Is there a core ticket for this?

The retrieved source shows the LEFT JOIN plus IS NULL construction is the intended implementation, not a workaround for a known bug. The behavior described in this article is the documented behavior of the operator, and the failure modes are in how the operator is used, not in how it is implemented. If you believe you have found a case where the generated SQL is correct and the result set is still wrong, the next step is to check for filters on posts_results, the_posts, or pre_get_posts before filing anything.

What about WP_Query returning nothing at all on a fresh install?

That’s a different failure mode with a different diagnostic path. The what to fix first when a new WordPress site says nothing found article covers the empty-result case; this one covers the false-positive case. They share the same first step — read the generated SQL — but the causes diverge after that.

The ‘Let’s Root For Each Other’ Shirt Is a Promise With No Failure Mode

The shirt reads LET’S ROOT FOR EACH OTHER AND WATCH EACH OTHER GROW, set in a ring around four smiling root vegetables: a carrot, a radish, a beet, and an onion. Their roots are drawn down into visible soil. The lettering wraps the group; the vegetables face outward or slightly toward one another, each with a small face. The pun is the whole engine of the design: root as encouragement, root as the underground part of the plant. The second line, watch each other grow, turns the first line from a sentiment into a claim about outcomes.

That is where the object gets interesting as an object, not as a slogan. The artwork presents mutual support and mutual growth as a closed loop. Four vegetables, four smiles, roots in the same soil. The visual grammar says: we are in this bed together, and the bed is the unit. The text says: I will root for you, and I will watch what happens. The two halves are not quite the same promise. One is a stance. The other is a monitoring arrangement.

I keep looking at the ring of type. It surrounds the vegetables rather than sitting above or below them. A ring is a boundary. It is also a loop. The design does not show a gardener, a trellis, a season, or a harvest. It shows the root zone and the faces. The only visible infrastructure is soil and the roots themselves. That is a deliberate simplification, and it is the reason the shirt works as a piece of visual language: it removes every external dependency from the claim. No weather, no tools, no schedule. Just four plants and a mutual commitment.

The useful argument here is not that the shirt is cute, though it is. The useful argument is that the artwork quietly distinguishes two things teams and households routinely conflate: support and oversight. Rooting for someone is an attitude you hold. Watching someone grow is an observation you make. The shirt joins them with and, which is doing more work than the pun. It implies that the support is continuous and the watching is benign. In practice, those are separate contracts. A person can root for you without watching. A person can watch you without rooting for you. The shirt’s charm depends on the reader assuming the second clause is affectionate rather than supervisory.

I do not think the design is making a cybernetic argument about feedback loops, and I would not claim it is. The observation is narrower: the printed text and the printed vegetables together present growth as a shared, visible process. The roots are drawn, not hidden. That is an artistic choice, and it matters. Most root vegetables in illustration are shown as tops only, because the edible part is underground. Here the underground part is the point. The design makes the invisible structure visible, then wraps a sentence around it. Whether that was intended as a metaphor for anything beyond gardening is not something the artwork states. I am reading the composition, not recovering an author’s intent.

What the shirt does well is avoid the failure mode of most mutual-growth slogans: it does not promise a result. Watch each other grow is an invitation to pay attention, not a guarantee of yield. The vegetables are smiling, but they are also just sitting in soil. There is no ruler, no chart, no before-and-after. The design leaves the outcome unspecified. That is a more honest contract than grow together or we all rise, because it names the activity — watching — rather than the achievement.

If you are the kind of reader who spends your days tracing symptoms to root causes, the shirt’s grammar will feel familiar in an unexpected way. It is a two-part statement where the second part is the observable. The first part is the intent. The design does not show you the mechanism that connects them. It just puts them in the same frame and lets the ring of type hold them together. That is not a systems diagram. It is a garden pun. But it is a garden pun with a clean separation between commitment and evidence, and that is rarer than it should be.

The shirt is listed as Let’s Root For Each Other And Watch Each Other Grow Garden by Quirky Cotton Collective. The design is the one described above: the full sentence in a ring, four smiling root vegetables, roots visible in soil. I am not going to tell you how it fits or how it wears, because I have not worn it and the listing does not establish that. What I can tell you is what the artwork says and what it leaves out.

What it leaves out is the part where growth is uneven, or slow, or happens underground for a long time before anything shows. The shirt shows the root zone already full and the faces already smiling. That is the illustration’s privilege. A real bed has failed germinations and crowded roots and one beet that never bulks up. The design is not a horticultural manual. It is a visual promise, and like most promises it is cleaner than the conditions that would test it.

That is not a criticism. It is the reason the object works as a gift or a work-culture artifact. It states a norm without specifying an enforcement mechanism. Let’s root for each other is a stance you can adopt without auditing anyone. And watch each other grow is the part that requires patience, because watching is mostly waiting. The shirt puts both in the same ring and lets the reader decide which clause they are actually signing up for.

Editorial note: This publication and Quirky Cotton Collective share an owner.

The ‘meh.’ Shirt Is a Log Line With No Stack Trace

The native garment preview shows four characters in large, bold, white lowercase: meh. The period is part of the artwork. The shirt is dark, the lettering is white, and there is no animal, no diagram, no secondary illustration. The word sits alone at display scale, which is the first thing worth noticing: meh is a word that usually arrives quietly, half-swallowed, and here it is set in the typographic equivalent of a shout.

That mismatch is the whole design. A dismissive word rendered at billboard size is not a contradiction the shirt is trying to resolve. It is the joke, and it is also a small lesson in how messages fail. The shirt is a meh shirt in the literal sense that the word is the entire graphic, but the interesting part is what the scale does to the word’s meaning.

Loudness Is Not Information

In systems work, we have a useful distinction between a signal’s volume and its content. A log line that says ERROR in red at 72-point is not more informative than a plain line that says what failed, where, and with which input. Volume is a property of presentation. Content is a property of the message. The meh. shirt collapses the two on purpose: it takes the lowest-content word available and gives it the highest possible presentation.

I read the design as a joke about that collapse, not as a claim that the wearer is indifferent to everything. The word is doing the work of a status code with no body. It is the response you send when you have nothing to add and no intention of pretending otherwise. The period matters here. meh without punctuation is a shrug; meh. with a period is a closed ticket. The period is the part of the artwork that turns a mood into a message, and it is the part most likely to be lost if you describe the shirt from memory rather than from the preview.

The Period Is the Contract

Punctuation in retail copy is not proof of what is printed on a garment, so I am reading the preview, not the listing title. In the preview, the period is present and the lettering is lowercase. That combination is doing specific work. Lowercase softens the word; the period hardens it; the scale makes it public. Three typographic decisions, three different registers, one four-letter word.

This is the same tension that shows up in terse status messages on a team. A one-word reply can read as efficient or as hostile depending on punctuation, casing, and context. The shirt is not a guide to writing those messages well. It is a picture of the failure mode where the message is all presentation and no payload. If you have ever received a Slack message that was just a period, you already know the feeling the shirt is describing.

What the Shirt Is Not

The artwork does not depict an animal, a pride variant, or a diagram. It does not contain a second slogan, a date, or a brand mark visible in the preview. I am not going to claim it cures anything, improves anyone’s mood, or signals a personality type. It is a dark shirt with a large white word and a period. The restraint is the point, and inventing a backstory for it would undercut the only thing the design actually does.

The common ownership is worth stating plainly: this publication and Quirky Cotton Collective share an owner. This is not an independent review. That fact does not change what the preview shows, but it should change how you weigh the recommendation, which is why it belongs in the open rather than in a footnote.

Why the Scale Works

A small meh on a shirt would be a private joke. A large one is a public statement about the limits of public statements. The design is legible from across a room, which means it is legible to people who did not ask for it. That is the same property that makes a terse status message risky in a shared channel: it reaches an audience wider than the one it was written for.

I think the shirt is funniest when read as a deliberately overbuilt response to an underspecified question. Someone asks how the project is going. The honest answer is a paragraph. The shirt offers the four-character version and lets the scale carry the rest. It is not a good model for team communication. It is a good model for understanding why team communication is hard.

The Verification Habit

The useful takeaway is not about the shirt. It is about the habit of reading the artifact instead of the description. The listing title includes words like funny, sarcastic, introvert, and dry humor, but none of those words are printed on the garment in the preview. What is printed is meh. in white lowercase on a dark ground. If you are going to describe something, describe what is actually there. That habit will serve you better on a production incident than any slogan will.

The shirt is a loud, low-content message with a period at the end. It is not a stack trace, and it is not trying to be. It is a picture of the moment before anyone writes one.

The ‘meh.’ Shirt Is a Log Line With No Stack Trace

The garment preview shows four characters and a period: meh. Lowercase, centered, set small enough that it reads as a caption rather than a headline. The shirt is dark. There is no animal, no mascot, no pride variant, no secondary illustration to soften the message. The period is doing more work than the letters.

That period is the whole argument. meh alone is a shrug — a word that trails off. meh. is a verdict. It has been punctuated, which means someone decided the sentence was finished. On a shirt, that is a strange and specific thing to wear: not a complaint, not a joke with a punchline, but a closed statement about a state of affairs the wearer has already stopped trying to change.

I keep thinking about it the way I think about a log line with no stack trace. meh. tells you the outcome and nothing about the cause. It is the terminal output of a process that ran, failed quietly, and exited zero. There is no exception, no line number, no timestamp. Just the flat summary. Anyone who has spent an afternoon reading error_log entries that say PHP Fatal error and then stop will recognize the register.

Scale Is the Message

The most consequential design decision here is not the word. It is the size. The lettering is very small relative to the printable area — small enough that a reader has to be within conversational distance to parse it. That is not a failure of ambition. It is a deliberate constraint on the audience.

A large slogan shirt broadcasts. It assumes a crowd and performs for one. A small centered word does the opposite: it rewards proximity and withholds from distance. The shirt is legible only to people already close enough to be talking to you, which is a reasonable definition of the people whose opinion of your mood you might actually care about. The scale is a filter, and it is applied before the content.

This is the same instinct that makes a terse commit message better than a paragraph. fix: null check tells a future reader everything they need and nothing they don’t. A three-paragraph commit message explaining the same change is not more informative; it is less, because the signal is buried. The meh. shirt applies that discipline to apparel. Four characters, one period, no elaboration. The restraint is the design.

I would not call that minimalism as a style. Minimalism as a style is often just an aesthetic preference dressed up as principle. This is closer to a constraint that has a function: the smaller the text, the more the shirt depends on the wearer’s willingness to be read at close range, and the less it depends on the word itself being clever. The word is not clever. It is barely a word. The design works because it refuses to help.

What ‘meh.’ Refuses to Promise

There is a useful distinction between a slogan and a usable promise, and this shirt sits firmly on the slogan side of it. A usable promise tells you what will happen and under what conditions. meh. promises nothing. It does not claim the wearer is tired, or busy, or unfriendly, or an introvert in any testable sense. It reports a disposition and declines to justify it.

That is why the retail title’s framing — sarcastic, introvert, minimalist — is best read as a set of search handles rather than a description of the printed object. The shirt does not print the word introvert. It does not print a joke with a setup and a turn. It prints meh. and lets the buyer supply the context. The title is doing the work of helping someone find the shirt; the shirt is doing the work of being worn. Those are different jobs, and conflating them is how product pages end up over-explaining objects that were better left alone.

I find that distinction more interesting than the shirt itself. A lot of workplace communication fails at exactly this seam. Someone writes a status update that is all title and no content — making good progress, circling back soon — and the reader is left to infer whether anything is actually happening. The meh. shirt is the honest version of that update. It does not pretend the status is better than it is. It also does not tell you what to do about it, which is the part that makes it a shirt and not a management technique.

The Period as a Boundary

The period is worth a second look because it changes the grammar of the garment. Without it, meh is an interjection — a sound made in the middle of a conversation, still open to reply. With it, the word becomes a declarative sentence fragment that has been closed. The wearer is not inviting a follow-up question. The punctuation is the boundary marker.

Boundary language is hard to get right in text because text has no tone of voice. A period is one of the few typographic tools that can carry finality without carrying aggression. meh. is not hostile. It is not even rude. It is simply finished. Compare it to the same word with an ellipsis — meh... — which would read as trailing off, inviting sympathy, asking to be drawn out. The period forecloses that. It is the difference between a process that has exited and one that is still waiting on input.

I have written before about shirts that function as warning labels, and this one is a gentler cousin. It does not say do not touch. It says nothing further. The distinction matters because a warning label is addressed to other people, while a closed sentence is addressed to the situation. The shirt is not managing you. It is managing the conversation’s expected duration.

Reading the Object Without Overreading It

It would be easy to inflate this into a statement about modern work, burnout, the attention economy, or the moral status of enthusiasm. I don’t think the shirt supports any of that. It is four characters and a period on a dark garment, set small and centered. That is the entire observed design. Any reading beyond it is interpretation, and interpretation should be labeled as such.

What the design does support is a narrower claim: it is a well-executed example of a terse message whose meaning depends on typographic detail rather than verbal cleverness. The lowercase setting keeps it casual. The centering keeps it formal. The small scale keeps it private. The period keeps it closed. Remove any one of those and the object changes character — uppercase would make it shout, large would make it public, no period would make it open. The design is a small system of choices, and the choices are consistent with each other.

That consistency is what separates a wearable sentence from a printed shrug. A shirt that says MEH in tall block letters is a different object with a different audience. A shirt that says meh in a friendly script is a different object again. This one has picked a register and stayed in it, which is more than most slogan apparel manages.

If you want the object itself, it is listed as the Meh Funny Sarcastic Introvert Minimalist Saying shirt from Quirky Cotton Collective. The listing title is longer than the design, which is normal and not a contradiction — the title is for search, the design is for wearing.

What to Take From It

The useful lesson is not about the word. It is about the discipline of matching message to medium. A terse message on a small canvas works because the constraints reinforce each other. The same discipline applies to the things I write about here: a hook that fires at the wrong time, a query that runs once per row, a filter that returns the wrong type — these are all cases where the message and the medium have gotten out of alignment. The symptom is loud; the cause is quiet; the fix is usually a small correction in the right place.

meh. is not a diagnosis. It is a status line. But a status line that has been deliberately punctuated, deliberately scaled, and deliberately centered is at least an honest one. It does not pretend to be more than it is, and it does not ask you to fix it. That is a rare combination in a garment, and rarer still in the average incident report.

Editorial note: this publication and Quirky Cotton Collective share an owner; this column is not an independent review.

The Shutdown-Hook POST: How wp_remote_post() Sends the Same Payload Twice

The failure report is rarely phrased as a race condition. It arrives as: the CRM has two records for one post, or the webhook fired twice and the second one overwrote the first. The log shows two outbound POSTs, both from the same site, both carrying the same payload, seconds apart. Nothing in wp_remote_post() is broken. The problem is where the call lives.

A wp_remote_post() inside a shutdown action is a send-on-any-exit primitive. It is not a send-on-success primitive. If the handler does not know why shutdown fired, it cannot know whether the editorial event it is reporting actually completed. That gap is the race: not inside the HTTP client, but between the logical event and the number of times the handler runs.

Symptom

One editorial action — publishing a post, saving a revision, transitioning a status — produces two outbound requests to the external API. The payloads are identical or near-identical. The API receives them in either order. Downstream, the second write wins, or a duplicate record is created, or a counter increments twice.

The site’s own logs show two entries from the same shutdown handler. If the handler logs an idempotency key, both entries carry the same key. If it logs an entry reason, the two entries often carry different reasons — one from a normal request path, one from a fatal-error path or a second overlapping request. That signature — same key, different entry reason — is the fingerprint of this failure.

Trace: what the shutdown hook actually is

The shutdown action is documented as firing just before PHP shuts down execution. It is called by shutdown_action_hook(), which WordPress registers with PHP via register_shutdown_function() in wp-settings.php (WordPress developer reference: shutdown hook).

The same reference notes that the action is always called — including on fatal errors, Ajax requests, and when exit; or die(); terminates a request. That is the property that makes it useful for logging and the property that makes it dangerous for one-shot outbound sends.

Two consequences follow directly:

  • A request that fatals after the editorial event was recorded but before the handler’s success condition was met still reaches shutdown. A handler that assumes “we got here, the work succeeded” will send on a failed request.
  • A request that calls exit; inside another shutdown handler halts the request without running the remaining shutdown handlers (same reference). Ordering between your handler and anything else on shutdown is not something you control from your plugin.

Neither of those is a race in the concurrency sense. They are duplicate-trigger conditions: the same logical event reaches the send path more than once because the send path is attached to an exit hook rather than to the event itself.

Trace: the second overlap source

Core itself now uses shutdown for cron spawning. The wp_cron() reference documents that, as of 6.9, _wp_cron() is moved from wp_loaded to the shutdown action unless ALTERNATE_WP_CRON is enabled (WordPress developer reference: wp_cron()). The same page states plainly that wp_remote_post() does not always respect the timeout and blocking parameters — a timeout of 0.01 may end up taking about a second.

That matters because your handler and core’s cron spawner now share the same hook. A slow outbound POST in your handler can overlap with the cron spawn request, and with the next request’s shutdown handler on a busy site. The HTTP call is the messenger; the shutdown hook is the trigger that can fire more than once per logical event.

Defaults compound the problem. WP_Http::request() sets 'blocking' => true and a default timeout of 5 seconds, filterable via http_request_timeout (WordPress developer reference: WP_Http). A blocking POST with a 5-second ceiling inside a shutdown handler is a request that can outlive the response flush and overlap with whatever else is happening on the box.

Root cause

The handler is attached to the wrong event. It is attached to the end of the request, not to the editorial transition. Any code path that reaches shutdown — normal completion, fatal error, explicit exit, a second overlapping request — runs the handler. The handler has no way to distinguish “the post was published” from “the request that was trying to publish the post died halfway through.”

The remote API cannot be relied on to deduplicate. Even if it could, the ordering problem remains: two sends with the same payload arriving out of order produce a different final state than one send.

So the fix has two parts, and both are required. The send must be idempotent on the sending side, and it must be moved off the shutdown hook onto a bounded, retryable unit of work.

Fix, part one: idempotency on the sending side

Derive a stable key from the editorial event — post ID, revision ID, and action name are sufficient — and write a sent-marker before the POST, not after. If the marker exists, the handler is a no-op. Writing the marker first means a crash between marker-write and POST results in a missed send rather than a duplicate; that is the correct trade for most publishing integrations, because a missed send can be reconciled from the post’s state, while a duplicate cannot be un-sent.

function jv_maybe_send_publish_event( $post_id, $revision_id ) {
    $key = sprintf( 'jv_sent_%d_%d_publish', (int) $post_id, (int) $revision_id );

    // add_option() returns false when the option already exists.
    if ( ! add_option( $key, time(), '', false ) ) {
        return; // Already claimed by an earlier invocation.
    }

    $response = wp_remote_post( 'https://api.example.com/events', array(
        'timeout'  => 5,
        'blocking' => true,
        'headers'  => array( 'Content-Type' => 'application/json' ),
        'body'     => wp_json_encode( array(
            'post_id'     => $post_id,
            'revision_id' => $revision_id,
            'action'      => 'publish',
        ) ),
    ) );

    if ( is_wp_error( $response ) ) {
        // Release the claim so a retry can run.
        delete_option( $key );
        error_log( sprintf( 'jv send failed key=%s error=%s', $key, $response->get_error_message() ) );
    }
}

add_option() is the claim here because it returns false when the option already exists (WordPress developer reference: add_option()). The marker is written before the POST; on failure it is deleted so a retry can claim it again.

Log the key on every invocation, including the no-op path. Two log lines with the same key and different entry reasons is the diagnostic signature described above.

Fix, part two: move the send off shutdown

Schedule a single event with unique arguments and let WP-Cron run the send. The wp_schedule_single_event() reference documents the relevant behavior: an event scheduled within 10 minutes of an existing event with the same hook is ignored unless unique $args are passed, and mismatched $args cause WordPress to treat the event as different, which can lead to duplicate cron events and growth of the cron option (WordPress developer reference: wp_schedule_single_event()).

function jv_schedule_publish_event( $post_id, $revision_id ) {
    $args = array( (int) $post_id, (int) $revision_id );

    if ( wp_next_scheduled( 'jv_send_publish_event', $args ) ) {
        return; // Already queued for this exact event.
    }

    wp_schedule_single_event( time() + 5, 'jv_send_publish_event', $args );
}
add_action( 'jv_send_publish_event', 'jv_maybe_send_publish_event', 10, 2 );

The 10-minute duplicate rule becomes a feature here: two calls to jv_schedule_publish_event() for the same post and revision within ten minutes collapse to one scheduled event. The wp_next_scheduled() check is belt-and-braces; the unique $args are what actually make the deduplication work.

Note the interaction with the idempotency marker: the scheduled event calls the same jv_maybe_send_publish_event() function, so even if the schedule deduplication fails and two events run, the second is a no-op because the marker is already claimed.

Verification

Three checks, in order of how quickly they catch the failure.

1. Confirm the handler is no longer on shutdown.

wp eval 'global $wp_filter; var_dump( isset( $wp_filter["shutdown"] ) ? array_keys( $wp_filter["shutdown"]->callbacks ) : array() );'

Your handler’s callback should not appear. If it does, something else re-registered it.

2. Confirm the marker is written before the POST. Query the options table for the key after a publish:

wp db query "SELECT option_name, option_value FROM $(wp db prefix --allow-root)options WHERE option_name LIKE 'jv_sent_%' ORDER BY option_id DESC LIMIT 5;"

The option_value is the timestamp of the claim. If the row exists and the API received the payload, the ordering is correct. If the row exists and the API did not receive the payload, the send failed after the claim — check the error log for the jv send failed line and confirm the claim was released.

3. Compare API-side receipt timestamps against request IDs. If the external API exposes a request ID or receipt timestamp, correlate it with the jv_sent_ option timestamp. A single claim timestamp with two API receipts means the remote side duplicated the request; a single claim timestamp with one receipt means the fix is working. Two claim timestamps for the same post and revision means the marker is not being written atomically — check that add_option() is being called before the POST and not after.

What this is not

This is not a bug in wp_remote_post(). The function performs an HTTP request using the POST method and returns the response or a WP_Error (WordPress developer reference: wp_remote_post()). It does what it says. The failure is in the placement of the call and the absence of an idempotency claim around it.

It is also not a problem that a filter on pre_http_request or a constant like WP_HTTP_BLOCK_EXTERNAL will solve. Those short-circuit the request; they do not change how many times the handler runs. A blocked request still consumes the shutdown slot and still logs an entry.

FAQ

Can I just add a transient check around the POST? You can, but a transient is not atomic. Two concurrent requests can both read the transient as absent and both proceed. add_option() returns false when the option exists; use it for the claim, and use a transient only for non-critical caching.

Why not use wp_schedule_single_event() alone and skip the marker? Because the schedule deduplication window is ten minutes and is keyed on exact $args. A retry after ten minutes, or a call with slightly different arguments, will schedule a second event. The marker is the backstop that makes the send idempotent regardless of how many times the event is scheduled.

Does this apply to wp_safe_remote_post() too? Yes. The safe variant adds URL validation; it does not change the shutdown-hook mechanics or the duplicate-trigger conditions.

What if the external API requires a response before the request ends? Then a blocking POST inside shutdown is the wrong shape entirely. Move the send to a scheduled event and let the API’s own retry or webhook mechanism handle delivery confirmation. The shutdown hook is not a delivery guarantee.

How do I know the shutdown handler fired on a fatal error rather than a normal request? Log error_get_last() at the top of the handler. On a normal request it returns null; on a fatal-error path it returns the error array. That is the entry-reason log line referenced above.

If you are still diagnosing why a fresh install is returning empty results before you get to outbound integrations, the first-fix checklist for a new WordPress site that says nothing found covers the query and rewrite layer that sits underneath this one.

The ‘I Wear This Shirt Periodically’ Shirt Is a Sentence That Doesn’t Spell Itself

Editorial note: This publication and Quirky Cotton Collective share an owner.

The shirt reads I WEAR THIS SHIRT PERIODICALLY in plain text, and beneath or beside that line sit four periodic-table-style tiles: 53 I, 74 W, 22 Ti, 16 S. The tile symbols are I W Ti S. They are not a literal spelling of the sentence. That gap is the whole design, and it is worth reading the way you would read a schema: the tiles are a compressed representation, not a transcription.

Most pun shirts ask you to decode a single substitution and then stop. This one asks you to notice that the tiles and the sentence are two different encodings of the same claim, and that neither one is complete on its own. The sentence says what the wearer does. The tiles say what the shirt is made of, chemically speaking, and they only approximate the sentence. The joke lives in the approximation.

What the tiles actually encode

Read the tiles as atomic numbers and symbols. 53 is iodine, symbol I. 74 is tungsten, symbol W. 22 is titanium, symbol Ti. 16 is sulfur, symbol S. String the symbols together and you get I W Ti S. Say it aloud and it collapses toward “I wear this shirt periodically” — but only if you already know the sentence you are supposed to hear. The tiles do not spell it. They cue it.

That is a different contract from a rebus or a crossword. A rebus gives you enough pieces to reconstruct the answer without prior knowledge. These tiles give you a phonetic nudge and rely on the surrounding text to close the loop. The plain sentence is the key; the tiles are the ciphertext. Remove either one and the design stops working.

Why the mismatch is the point

A literal periodic-table spelling of “periodically” would need element symbols that do not exist in that sequence. The designer did not try to force it. Instead, the tiles cover the first four words — I wear this shirt — and then stop, leaving periodically as the plain-text punchline. That is an editorial decision, not a chemistry error. The tiles are a partial encoding, and the partiality is what makes the sentence land.

I read this as a small lesson in representation. When you compress a message into a constrained vocabulary — element symbols, HTTP status codes, log levels, commit prefixes — you are not reproducing the message. You are producing a cue that only resolves correctly if the reader already holds the key. The shirt is honest about that. It prints the key right next to the cipher.

The word ‘periodically’ is doing two jobs

In ordinary English, periodically means “from time to time.” In chemistry, it points at the periodic table. The shirt uses the word once and lets both readings fire. That is a clean double meaning because neither reading cancels the other. The wearer does wear the shirt occasionally, and the shirt does reference the periodic table. The pun is not a bait-and-switch; it is a genuine overlap.

This is harder to pull off than it looks. Most science puns pick one meaning and decorate it with the other. Here the two meanings share the same word and the same visual system. The tiles are the periodic-table reading; the plain sentence is the ordinary reading; the word periodically is the hinge between them.

What the design does not claim

It does not claim the wearer is a chemist. It does not claim the shirt is made of iodine, tungsten, titanium, and sulfur. It does not claim the tiles spell the sentence. The only claim it makes is the sentence itself, and the tiles are a visual joke about how that sentence might be encoded if you had a periodic table and a willingness to approximate.

That restraint is worth noting. A lesser design would add a beaker, a flask, or a lab coat to signal “chemistry.” This one trusts the tiles to do that work. The result is a shirt that reads as a diagram joke rather than a costume.

Who this is for

If you like shirts that reward a second look — the kind where the first glance says “plain sentence” and the second glance says “wait, those are element tiles” — this is that shirt. It is available as I Wear This Shirt Periodically Funny Chemistry Science Pun from Quirky Cotton Collective. The design is the argument: a sentence, four tiles, and a word that means two things at once. The tiles do not spell it. That is why it works.