Debugging Missing Inner Blocks in a Block Pattern’s Site Editor Preview

Symptom. You register a block pattern. It appears in the inserter. You insert it into a template in the Site Editor, and the outer container renders while the nested blocks — pagination, no-results, an inner group, whatever the pattern was supposed to contain — do not. Save the template, refresh the editor, and they appear. Or they don’t. The two outcomes point at different layers, and the first job is to stop calling them the same problem.

The phrase “a block pattern’s InnerBlocks” is doing damage here. A pattern is registered Block HTML Markup — a string of serialized blocks passed as the content property of register_block_pattern(). InnerBlocks is a React component inside a block type’s edit and save functions. A pattern does not have InnerBlocks in the API sense. It has nested blocks in its content. Naming the failure precisely is half the triage, because the fixes live in different places: pattern registration and markup on one side, block type registration and editor rendering on the other.

Layer 1: Is the pattern itself well-formed?

Start with the registration call. The Block Editor handbook is explicit that register_block_pattern() takes a name in namespace/title form and a properties array whose required keys are title and content, and that content is “Block HTML Markup for the pattern” (Block Patterns reference). If you passed rendered HTML, a shortcode, or a PHP template fragment instead of serialized block comments, the editor has nothing to parse into nested blocks. The outer wrapper may still appear because the parser falls back to freeform or classic content.

A minimal, correct registration looks like this:

add_action( 'init', function () {
    register_block_pattern(
        'my-plugin/query-with-pagination',
        array(
            'title'      => __( 'Query with pagination', 'my-plugin' ),
            'categories' => array( 'query' ),
            'content'    => '<!-- wp:query {"queryId":1,"query":{"perPage":3,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false}} -->
<div class="wp-block-query"><!-- wp:post-template -->
<!-- wp:post-title /-->
<!-- /wp:post-template -->
<!-- wp:query-pagination -->
<!-- wp:query-pagination-previous /-->
<!-- wp:query-pagination-numbers /-->
<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination -->
<!-- wp:query-no-results -->
<!-- wp:paragraph --><p>Nothing found.</p><!-- /wp:paragraph -->
<!-- /wp:query-no-results --></div>
<!-- /wp:query -->',
        )
    );
} );

Two registration details cause silent failures that look like rendering bugs:

  • Hook timing. The handbook states that register_block_pattern() should be called from a handler attached to init. Registering on after_setup_theme or inside a template file can leave the pattern absent from the editor’s pattern list or present without its content being parsed in time.
  • Context restrictions. postTypes limits the pattern to specific post types, and outside those types “the pattern is not available at all.” templateTypes does the same for template types such as 404 or single-post. A pattern that works in a post but not in the Site Editor’s template context may simply be restricted out of that context rather than failing to render.

Verify what the registry actually holds before touching anything else. WP-CLI gives you the registered patterns and their raw content:

wp eval '
$registry = WP_Block_Patterns_Registry::get_instance();
foreach ( $registry->get_all_registered() as $pattern ) {
    if ( str_starts_with( $pattern["name"], "my-plugin/" ) ) {
        echo $pattern["name"], "\n";
        echo substr( $pattern["content"], 0, 300 ), "\n---\n";
    }
}
'

If the content string is present and contains the nested block comments, the pattern is not the problem. If it is empty or contains plain HTML, stop here and fix the registration.

Layer 2: What the editor does with a pattern after insertion

The Site Editor preview is not a one-to-one render of the registered content string. The core core/pattern block wraps pattern content in a group block on the server before running do_blocks(). The relevant change in Gutenberg’s history shows the render function returning:

return do_blocks( '<!-- wp:group --><div class="wp-block-group">' . $pattern['content'] . '</div><!-- /wp:group -->' );

(Gutenberg commit 7620b99.) In the editor, the same block replaces its wrapper with a Group block containing the pattern’s blocks when the block or its inner blocks are selected. What you see in the canvas is the editor’s reconstruction of the pattern, not the raw string. A missing child in preview is therefore not automatically evidence that the pattern content is wrong — it can be evidence that the editor’s replacement step did not complete.

This matters for dynamic blocks in particular. The handbook notes that if a dynamic block uses InnerBlocks, the InnerBlocks must be saved in the save callback using <InnerBlocks.Content/> (Static or Dynamic rendering of a block). A custom block inside your pattern that renders server-side but omits <InnerBlocks.Content/> in save will look correct on the front end and empty in the editor. That is a block registration bug, not a pattern bug, and no amount of pattern editing will fix it.

Inspect the parsed blocks directly in the browser console while the Site Editor is open. The block editor data stores are exposed through wp.data:

const { select } = wp.data;
const blocks = select( 'core/block-editor' ).getBlocks();
console.log( JSON.stringify( blocks, null, 2 ) );

Find the block whose name is core/pattern or the inserted group, and inspect its innerBlocks array. If the nested blocks are present in the store but absent from the DOM, the problem is rendering, not parsing. If they are absent from the store, the pattern content or the insertion step dropped them. That distinction determines whether you keep reading here or move to Layer 3.

Layer 3: Rule out a known editor bug

There is a documented case where blocks relying on InnerBlocks templates do not render their inner content on insertion in templates, but do render after save and refresh. Gutenberg issue #71724 describes exactly this: “When inserting blocks that rely on InnerBlocks templates, the inner content is not rendered upon insertion. But saving and refreshing triggers rendering and content is rendered properly. Reproducible only in templates.” The reproduction steps name the Query Loop block: insert it in Editor > Templates, choose Start blank and a design, and observe that Pagination and No Results are missing until save and refresh. The report also names Terms Query and Product Gallery. It was closed as completed in #71811 on September 30, 2025.

Two cautions about using this as a diagnosis. First, the retrieved issue text does not establish which shipped WordPress or Gutenberg version contains the fix, so you cannot conclude from the issue alone that your install is affected or unaffected. Check your version against the Gutenberg release notes for #71811 rather than assuming. Second, the report names specific blocks; it is not evidence that every InnerBlocks-template block fails. If your pattern contains a different block, the refresh test is still the right diagnostic, but the upstream explanation may differ.

The decision tree

Run these in order. Each step eliminates a layer.

  1. Reproduce in the context you care about. Insert the pattern into a template in the Site Editor, not just into a post. The #71724 report says the failure is reproducible only in templates, so a post-context test can produce a false negative.
  2. Run the refresh test. Save the template, reload the editor. If the nested blocks appear, the pattern content and registration are almost certainly fine and the failure is editor-side rendering timing. Record the block name and your WP and Gutenberg versions, then check the issue tracker for that block before changing code.
  3. If refresh does not fix it, inspect the store. Use the wp.data snippet above. Blocks present in the store but missing from the DOM point to a block type’s edit function or a rendering filter. Blocks absent from the store point back to the pattern content or the insertion step.
  4. Confirm the pattern content. Run the WP-CLI command from Layer 1. If the nested block comments are missing from the registered content, the pattern is the problem regardless of what the editor does.
  5. Check context restrictions. If the pattern is registered with postTypes or templateTypes, confirm the current editor context matches. A pattern restricted to single-post will not be available in a 404 template, and that absence can be mistaken for a rendering failure.
  6. Check custom blocks in the pattern. For any dynamic block inside the pattern, confirm its save callback includes <InnerBlocks.Content/>. A block that renders correctly on the front end but empty in the editor is a registration bug in that block, not in the pattern.

What to capture before filing upstream

If the refresh test points to an editor bug and the issue tracker has no matching report for your block, the maintainers need specifics. Capture:

  • WordPress version and Gutenberg plugin version, if active.
  • Theme type: block, classic, or hybrid.
  • The exact block name whose inner content is missing, and the pattern name.
  • Whether the failure occurs in a template, a template part, or a post.
  • Whether save-and-refresh resolves it.
  • The output of the wp.data store inspection for the affected block, showing whether the inner blocks are present in the store.

That set separates “the pattern is malformed” from “the editor dropped the children” in a way a screenshot cannot. The #71724 report includes reproduction steps and environment details for the same reason; a report without them tends to be closed as unreproducible.

FAQ

Does the REST block-renderer endpoint explain this? Not in the sources reviewed for this article. The block-renderer reference was unavailable at retrieval time, and no retrieved source ties this symptom to that endpoint. Treat server-side preview rendering as a separate investigation if you have evidence pointing there.

Could a plugin or theme be causing it? Possibly, but no retrieved source supports a specific cause. The standard isolation step — deactivate plugins except the one registering the pattern and the block, switch to a default block theme, retest — is still the right way to find out, and it should come after the refresh test rather than before it.

Will changing blockTypes or inserter fix the preview? No retrieved source supports that. Those properties control where a pattern is offered, not how its nested blocks render once inserted. Changing them to work around a rendering failure moves the symptom rather than fixing it.

Why does the pattern render on the front end but not in the editor? The front end runs the server-side render path, which wraps the pattern content in a group and passes it through do_blocks(). The editor reconstructs the pattern through its own block replacement step. The two paths are not identical, which is why a front-end check is not a substitute for the Site Editor test.

The ‘I Had Potential’ Shirt Is a State Diagram, Not a Slogan

The shirt reads I HAD POTENTIAL in white capitals. Beneath the text, a white curved ramp descends from an upper-left ledge to a lower-right flat ledge. A dashed empty circle sits on the upper ledge. A solid white ball rests on the lower ledge. 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 specific than “sarcastic minimalist quote” suggests. It is a before-and-after state diagram with one state missing.

Here is the trace. The dashed circle on the upper ledge is the object at rest at the top of the ramp. In physics terms, a ball at the top of a curved ramp has gravitational potential energy — energy stored by virtue of its position. The solid ball on the lower ledge is the same object after the ramp has done its work. The dashed circle is not a ghost or a memory; it is the initial condition. The solid ball is the final condition. The ramp between them is the process.

The joke is not that the ball fell. The joke is that the shirt labels the initial condition “potential” and then shows you the final condition without labeling it at all. The final condition is just a ball sitting on a flat ledge. No caption. No verdict. The sentence above supplies the verdict: I had potential. Past tense. The diagram supplies the evidence: a dashed outline where the ball used to be, and a solid ball where it ended up.

That is a more disciplined piece of design than a plain text joke would be. A shirt that just said “I had potential” would be a sentence about regret. The ramp makes it a diagram about conversion. Potential energy is not a moral quality; it is a bookkeeping entry. It is the energy an object has because of where it sits, and it becomes kinetic energy when the object moves. The shirt does not show the ball moving. It shows the ball before and after. The dashed circle is the stored state; the solid ball is the spent state. The ramp is the transaction.

I am not making a physics claim beyond that reading. The drawing is a cartoon, not a free-body diagram. The curve is decorative as much as it is functional. But the curve matters because it distinguishes this from a straight inclined plane. A straight ramp would read as a simple slide: ball goes down. A curved ramp reads as a path with a shape — a trajectory, a rollout, a process with a beginning and an end. The dashed circle sits at the lip of the upper ledge, not on the slope. The solid ball sits on the flat lower ledge, not at the base of the curve. The design is careful about where the states are placed. The process happens between them, off-screen.

That off-screen process is where the shirt’s double meaning lives. In ordinary speech, “potential” means promise: something in you that has not yet been realized. In physics, potential energy is a quantity you can calculate from position and mass. The shirt uses the same word for both and lets the diagram carry the pun. The dashed circle is the promise. The solid ball is the outcome. The ramp is everything that happened in between, and the shirt does not show it. That omission is the joke, and it is also the honest part. Most accounts of potential skip the ramp.

This is why the shirt works better as an object than as a slogan. A slogan asserts. A diagram describes a state. The sentence I had potential is self-deprecating, but the diagram is neutral. It does not say the ball failed. It does not say the ramp was too steep or the ledge too high. It says: here is the initial condition, here is the final condition, and here is the path between them. The self-deprecation comes from the caption, not the drawing. The drawing is just a system.

For readers who spend their days tracing state through systems, that is a familiar shape. A cache entry that was warm and is now cold. A queue that was full and is now drained. A flag that was set and is now unset. The dashed circle is the state you can no longer query directly; the solid ball is the state you can observe. The ramp is the invalidation event. The shirt does not name the event, which is exactly what makes it funny. Most postmortems spend their time on the ramp. The shirt spends its time on the two ledges.

The design is also restrained in a way that matters. White ink on a dark garment, no secondary colors, no extra text. The capitals are uniform. The ramp is a single stroke. The dashed circle is a single dashed stroke. The solid ball is a filled circle. There is no texture, no gradient, no decorative frame. That restraint keeps the diagram legible at a distance, which is the only distance at which a shirt diagram needs to work. Up close, you read the sentence. Across a room, you read the shape: text, ramp, two circles. The shape is the joke.

If you want the object itself, the listing is here: I Had Potential Funny Physics Pun Sarcastic Minimalist Quote. The retail title calls it a physics pun and a sarcastic minimalist quote. The artwork is more specific than either phrase: it is a two-state diagram with a curved transition and a missing middle. The pun is in the word potential. The minimalism is in the omission. The sarcasm is in the past tense.

What I keep coming back to is the dashed circle. A dashed outline is a conventional way to draw something that is not there — a hidden edge, a projected position, a thing that has moved. On this shirt, the dashed circle is the only element that implies time. The solid ball is present tense. The sentence is past tense. The dashed circle is the bridge between them, and it is empty. That is a precise visual joke: the state you are mourning is drawn as an absence, and the state you are in is drawn as a solid object with no label. The ramp did its work. The shirt does not say whether the work was good.

That ambiguity is what keeps the design from being a generic “I peaked” shirt. It does not claim a peak. It claims a conversion. Potential became something else, and the something else is just a ball on a ledge. Whether that is a tragedy or a relief depends on the reader, which is why the shirt can be worn by someone who is genuinely self-deprecating and by someone who is quietly relieved to have stopped being potential. The diagram does not adjudicate. It just shows the states.

If there is a lesson for people who build systems, it is a small one: draw the states, not the story. The shirt is funny because it refuses to narrate the ramp. It shows the initial condition, the final condition, and the path, and it lets the caption do the editorializing. That is a useful discipline for diagrams of any kind. The ramp is where the complexity lives, and the shirt is smart enough to leave it blank.

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

The wp_enqueue_scripts Action Doesn’t Load Block Styles Twice — Your Handles Do

Symptom

You view source on a hybrid theme’s front end. Two <link rel='stylesheet'> tags point at the same block CSS file. Sometimes the URLs are byte-identical; sometimes one carries ?ver=6.x and the other ?ver=1.0.0. The reflex is to suspect wp_enqueue_scripts is firing twice. It is not. The action fires once per front-end request. The duplicate is a registry artifact: two distinct style handles resolving to the same file, or one handle enqueued from two code paths that core does not collapse because the handles differ.

This article traces the actual mechanism in a hybrid (classic PHP template plus block content) theme, shows where the second handle comes from, and gives a diagnostic sequence that ends with a fix rather than a guess.

Trace: what actually runs

wp_enqueue_scripts is the documented hook for front-end scripts and styles. The handbook is explicit that despite the name it is used for both, and that it is the proper place to enqueue assets meant for the front end (WordPress Developer Reference: wp_enqueue_scripts). It is a single do_action call inside wp_enqueue_scripts() in wp-includes/script-loader.php. Nothing in core fires it twice.

Block styles reach the page through a different path. On a classic theme, wp_common_block_scripts_and_styles() enqueues wp-block-library, conditionally enqueues wp-block-library-theme when the theme supports wp-block-styles and separate core block assets are off, then fires enqueue_block_assets (wp_common_block_scripts_and_styles()). Separately, wp_enqueue_registered_block_scripts_and_styles() walks the block registry and enqueues every registered block’s style_handles and script_handles — but only when block assets are not loaded on demand. When on-demand loading is active, that function returns early and instead registers a placeholder style for the late-print hoist path (wp_enqueue_registered_block_scripts_and_styles()).

That early return is the fork in the road. In a hybrid theme, whether you hit the registry walk or the on-demand path depends on wp_should_load_block_assets_on_demand(), which in turn depends on theme configuration and the should_load_separate_core_block_assets filter. The two paths are mutually exclusive for core’s own enqueues, but they are not the only writers to $wp_styles. Your theme is the other one.

Root cause: handle identity, not hook count

WP_Styles keys everything by handle. The class documentation states that it ensures registered stylesheets are output in dependency order and that the global $wp_styles is what wp_print_styles outputs during wp_head (WP_Styles). wp_enqueue_style() registers the style if a source is provided — and does not overwrite an existing registration — then enqueues it (wp_enqueue_style()). Enqueueing the same handle twice is a no-op on output: the handle appears once in the queue.

So a duplicate <link> for one file is positive evidence of two handles, not a double hook fire. There are two realistic ways that happens in a hybrid theme.

Failure mode A: handle collision with core’s block style handle

Core generates a handle per block style. The wp_enqueue_block_style() documentation carries a user note warning that if your block is namespace/name, you must not set the handle to namespace-name-style, because WordPress already uses that handle for the block’s own styles and your style will not be enqueued (wp_enqueue_block_style()). The inverse is the interesting case for duplication: if your theme registers a different handle pointing at the same file that core’s generated handle already covers, both survive. Core’s registry walk enqueues its handle; your wp_enqueue_style() call enqueues yours. Two handles, one file, two <link> tags.

This is the most common shape of the symptom. The theme author reasonably named their file core-group.css and their handle mytheme-core-group, unaware that core already registers a handle for core/group styles when separate core block assets are enabled.

Failure mode B: hook timing inside wp_enqueue_block_style()

wp_enqueue_block_style() does not enqueue immediately. It builds a callback and attaches it to a hook chosen at call time:

$hook = did_action( 'wp_enqueue_scripts' ) ? 'wp_footer' : 'wp_enqueue_scripts';

If wp_enqueue_scripts has already fired when you call the function, the callback lands on wp_footer instead. The same function also attaches the callback to enqueue_block_assets for the editor (wp_enqueue_block_style()). The block stylesheet guide recommends calling it on init (Block Stylesheets), which is early enough that did_action('wp_enqueue_scripts') is still zero and the callback lands on the intended hook.

Call it from a late hook — say, inside a template file or a wp action callback — and the enqueue moves to wp_footer. If the theme also has a direct wp_enqueue_style() call for the same file on wp_enqueue_scripts, you now have two handles: one printed in wp_head, one printed in the footer. The handle dedup does not help because the handles differ. The visible result is the same file loaded twice, once late.

Fix

The fix is not to remove wp_enqueue_scripts. That hook is the documented correct place for front-end enqueues, and removing it breaks unrelated assets. The fix is to make the theme’s block style registration defer to core’s handle when one exists, and to call wp_enqueue_block_style() from a hook early enough that its internal branch resolves to wp_enqueue_scripts.

Step 1: stop registering a parallel handle for a core block

If you are styling a core block and separate core block assets are enabled, core already has a handle for it. Do not add a second one. Either extend core’s stylesheet with wp_add_inline_style() against the existing handle, or accept that your file is a separate concern and give it a handle that cannot collide.

add_action( 'wp_enqueue_scripts', function () {
    // Extend core's existing handle instead of registering a parallel one.
    if ( wp_style_is( 'wp-block-group', 'registered' ) ) {
        wp_add_inline_style( 'wp-block-group', '.wp-block-group { --mytheme-gap: 1.5rem; }' );
    }
} );

If you genuinely need a separate file, register it through wp_enqueue_block_style() on init with a handle that does not match core’s convention:

add_action( 'init', function () {
    wp_enqueue_block_style( 'core/group', array(
        'handle' => 'mytheme-group-extras', // not 'core-group-style'
        'src'    => get_theme_file_uri( 'assets/blocks/core-group-extras.css' ),
        'path'   => get_theme_file_path( 'assets/blocks/core-group-extras.css' ),
    ) );
} );

The path argument is what lets WordPress inline the CSS in the head rather than emit a separate request, per the block stylesheet guide. The guide also notes the system often offers better performance by only loading a block’s CSS when the block is in use on the page — which is the on-demand branch, and the reason the hook choice matters.

Step 2: verify the hook the callback actually landed on

If you suspect failure mode B, check whether wp_enqueue_scripts had already fired when your registration ran. A one-line probe in a staging copy answers it:

add_action( 'wp_footer', function () {
    error_log( 'wp_enqueue_scripts fired: ' . did_action( 'wp_enqueue_scripts' ) );
}, 1 );

If the count is 1 at wp_footer, the action fired exactly once — as documented — and any duplication is handle-level. If your wp_enqueue_block_style() call ran after that point, its callback is on wp_footer by design.

Verification

Do not trust view-source alone. Dump the registry and match handles to URLs.

List every registered style handle and its source

add_action( 'wp_footer', function () {
    if ( ! current_user_can( 'manage_options' ) ) {
        return;
    }
    foreach ( wp_styles()->registered as $handle => $dep ) {
        error_log( sprintf( '%s => %s', $handle, is_string( $dep->src ) ? $dep->src : '(alias)' ) );
    }
}, 999 );

Then grep the error log for the duplicated filename. Two handles with the same src confirm the diagnosis. One handle with two printed tags would indicate a different problem — a template echoing a <link> manually, or a plugin printing outside WP_Styles.

Confirm which handles are actually queued

add_action( 'wp_footer', function () {
    if ( ! current_user_can( 'manage_options' ) ) {
        return;
    }
    error_log( 'queued: ' . implode( ',', wp_styles()->queue ) );
}, 999 );

wp_styles()->queue is the list of handles awaiting output. If the duplicate file appears under two handles, both will be in this list. If it appears once, the second <link> is not coming from the enqueue system.

Check the on-demand branch

Whether core’s registry walk runs at all depends on wp_should_load_block_assets_on_demand(). You can read the resolved value without guessing:

add_action( 'wp_footer', function () {
    if ( ! current_user_can( 'manage_options' ) ) {
        return;
    }
    error_log( 'on-demand: ' . ( wp_should_load_block_assets_on_demand() ? 'yes' : 'no' ) );
    error_log( 'separate core: ' . ( wp_should_load_separate_core_block_assets() ? 'yes' : 'no' ) );
}, 999 );

If on-demand is no, core’s registry walk is enqueueing every registered block style handle, and any theme handle pointing at the same file is a second tag. If on-demand is yes, core is deferring to render_block and the duplicate is almost certainly a theme-side wp_enqueue_style() call that does not know about the on-demand path.

WP-CLI cross-check

For a quick inventory of registered block style handles without loading a page, use the block type registry from the command line:

wp eval 'foreach ( WP_Block_Type_Registry::get_instance()->get_all_registered() as $name => $type ) { if ( ! empty( $type->style_handles ) ) { echo $name . ": " . implode( ",", $type->style_handles ) . "\n"; } }'

Compare the handles printed here against the handles your theme registers. Any overlap is a collision; any theme handle pointing at a file core already covers is a duplicate waiting to print.

Why the wrong hypothesis is sticky

“The hook fires twice” is a satisfying explanation because it is simple and because wp_enqueue_scripts is the hook most theme code touches. But the hook is a single do_action, and WP_Styles deduplicates by handle. Both facts are documented. The duplicate you see is the registry telling you that two different pieces of code claimed the same file under two different names. Fix the names, or fix the hook timing, and the second tag disappears. Removing wp_enqueue_scripts removes the symptom and a dozen unrelated assets with it.

If the duplicate survives every check above — one handle, one queue entry, two tags — the second tag is not from the enqueue system at all. Look at the template, at a plugin that prints styles directly, and at any style_loader_tag filter that might be appending rather than replacing. That is a different failure mode with a different trace, and it is worth its own investigation rather than a patch to the enqueue hook.

FAQ

Does wp_enqueue_scripts ever fire more than once per request?

No. It is a single do_action( 'wp_enqueue_scripts' ) inside wp_enqueue_scripts() in wp-includes/script-loader.php. If you observe it firing twice, something is calling do_action on it manually or you are looking at two requests.

Why does enqueueing the same handle twice not produce two link tags?

WP_Styles keys registered styles by handle and the queue is a set of handles. Enqueueing an already-queued handle is idempotent. Two tags require two handles.

Can wp_enqueue_block_style() itself cause a duplicate?

Not by enqueueing the same handle twice — that collapses. It can cause a duplicate if you call it with a handle that differs from the one core uses for the same block, or if you call it late enough that its internal did_action('wp_enqueue_scripts') check routes the callback to wp_footer while a separate wp_enqueue_style() call prints the same file in the head.

Should I just remove my theme’s wp_enqueue_scripts callback?

No. That hook is the documented correct place for front-end enqueues and removing it breaks every other asset the callback handles. Fix the handle or the hook timing instead.

What if the duplicate only appears on some pages?

That points at the on-demand branch. On pages where the block is present, render_block fires the callback and the stylesheet is enqueued; on pages where it is not, it is not. If your theme also enqueues the same file unconditionally on wp_enqueue_scripts, the duplicate appears only where the block renders. The registry dump above will show both handles on those pages and one on the others.

The ‘Let’s Root For Each Other’ Shirt Is a Diagram, Not a Promise

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. Each one is drawn with its root visible in a band of soil. The lettering is the frame; the vegetables are the content. That arrangement is the first thing worth noticing, because it makes the design behave less like a slogan and more like a small annotated diagram.

Most team-culture shirts put the sentence in charge. The words sit alone, large, and the wearer becomes a billboard for an aspiration. Here the sentence is a caption wrapped around a picture that already contains the joke. Root is doing double duty: cheering for someone, and the physical root of a plant. The four vegetables are not decorative. They are the evidence for the pun. The design asks you to read the words and the drawing together, and the drawing is what keeps the sentence honest.

That distinction matters more than it might first appear. A slogan is a claim about how people should behave. A diagram is a description of how something works. The shirt leans toward the second. It shows four different plants, each with a different edible root, sharing the same soil. It does not show them growing into one another, merging, or competing for a single prize. The visual argument is coexistence, not convergence.

Two Meanings of Rooting, and Only One of Them Scales

To root for someone is to support them from the sidelines. To put down roots is to settle, to establish, to stay. The shirt uses both senses in a single line, and the vegetables make the second sense literal. Their roots are visible in the soil, which is exactly what you would draw if you wanted to show that growth is underground before it is visible above.

The phrase watch each other grow is the part that deserves a second look. Watching is passive. Growth is not something you can do to another person. The shirt does not claim that cheering causes the growth. It places the cheering and the growing side by side, as two things that happen in the same garden. That is a more modest claim than most motivational apparel makes, and it is more defensible because of it.

If you are the sort of reader who spends the day tracing symptoms to root causes, the structure will feel familiar. The visible part of a plant is the symptom. The root is the cause. The shirt draws both, and it labels the relationship with a pun rather than a diagram key. The joke works because the underlying structure is accurate: what you see above the soil depends on what you cannot see below it.

What the Four Vegetables Actually Show

The carrot, radish, beet, and onion are not interchangeable. They have different shapes, different colors, and different root structures. The carrot is long and tapered. The radish is round and small. The beet is bulbous. The onion is layered. Drawing them together is a small act of restraint: the design does not flatten them into identical mascots. Each one keeps its own silhouette.

That is the part of the artwork I keep returning to. A less careful version of this shirt would have drawn four identical smiling plants and let the words carry the whole message. This version gives each vegetable a distinct root, which means the picture is making the same argument as the sentence: different things, same soil, growing at their own rate. The smiles are uniform, but the roots are not.

I am reading the design here, not reporting a horticultural fact. The shirt is a drawing, and the drawing uses recognizable root vegetables as characters. Whether the soil band is meant to represent a garden bed, a team, or something else is an interpretation, not a claim printed on the garment. The literal observation is simpler: four smiling root vegetables, roots visible, arranged around a circular sentence.

The Difference Between a Slogan and a Usable Promise

Work-culture language tends to fail in a predictable way. A phrase like we grow together sounds warm until you ask what it obligates anyone to do. Does it mean the team shares credit? Does it mean juniors get mentoring? Does it mean the roadmap includes time for learning? Without an answer, the phrase is decoration. The shirt does not solve that problem, but it avoids making it worse. It is a picture of mutual support, not a policy statement.

That is why I would rather see this on a person than a shirt that says something like hustle or rise and grind. Those phrases turn growth into a demand. This one turns it into an observation. The vegetables are not competing for sunlight in the drawing. They are simply there, each with its own root, sharing a strip of soil. The shirt is not asking you to grow faster. It is asking you to notice that growth is a thing that happens to more than one plant at a time.

The phrase let’s root for each other is also worth separating from let’s all grow the same way. The first is about encouragement. The second is about conformity. The artwork supports the first reading because the vegetables are visibly different. If the design had drawn four identical carrots, the sentence would still work, but the picture would be arguing for sameness. It does not.

Reading It as an Object

The shirt is listed as a standard t-shirt under the Quirky Cotton Collective brand. The design is a gardening and mutual-growth pun, and the retail title names the garden setting directly. The Let’s Root For Each Other And Watch Each Other Grow Garden listing is the exact object this column is describing. I am not claiming to have worn it, tested it, or heard from anyone who has. The observation is of the artwork and the listing, not of a wearing experience.

What the artwork gives you is a sentence that can be read in two registers at once. On one register it is a cheerful garden pun. On another it is a small diagram of how support works: different roots, shared soil, visible growth above and invisible work below. The second register is the one that makes it more than a novelty. It is a shirt that can be read closely, and reading it closely is more interesting than agreeing with it.

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

The ‘meh.’ Shirt Is a Null Return, Not a Mood

The native garment preview shows four characters: a lowercase m, e, h, and a period, set in large bold white type on a dark shirt. No animal, no illustration, no secondary slogan. The period is doing more work than the letters. It closes the utterance the way a return null; closes a function — not with an error, not with a value, but with a deliberate absence that the caller has to handle.

That is the argument I want to make about this shirt, and it is a design argument, not a software one. The visual loudness of the lettering is the whole joke: a word that means I decline to have a reaction is printed at a size that demands a reaction. The typography contradicts the message, and the contradiction is the point. A smaller meh. would be a whisper. This one is a shout that says nothing.

Why the period changes the contract

Strip the period and you have meh, an interjection, a shrug in text form. Add the period and you have a sentence fragment that has been formally terminated. In writing, the period is a commitment: the thought is over, the floor is closed. On a shirt, that commitment is funny because the thought was never opened. The garment is not expressing indifference; it is declaring indifference, which is a different act. A declaration has an author. An author can be held to it.

This is the distinction I keep coming back to when I look at the preview: the shirt is not a mood board. It is a boundary marker with a typographic finish. The wearer is not saying I am sad or I am tired. The wearer is saying this conversation has reached its return statement, and the return value is null. Whether the wearer actually feels that way is unobservable from the artwork, and I am not going to pretend otherwise. What is observable is the design choice: large, bold, lowercase, terminated.

The loudness is the load-bearing element

If you have spent any time around printed merchandise, you know that most slogan shirts fail because the type is sized to fit the platen rather than to carry the joke. This one does the opposite. The letters are large enough to read across a room, which means the shirt is optimized for the moment someone else notices it — not for the wearer’s private amusement. That is a real design decision with a real consequence: the shirt is a public artifact. It invites a reaction while claiming not to want one.

I read that as a deliberate tension rather than an accident. The word meh is a low-energy signal. The type is a high-energy signal. Put them together and you get a garment that is legible from a distance and ambiguous up close, which is roughly the social contract of dry humor. The person who laughs at it has understood the contradiction. The person who asks what does that mean has not, and the shirt has no obligation to explain itself. The period already did that.

What the shirt is not

The preview shows no animal illustration and no pride variant. That matters for reading the object honestly. There is no mascot softening the message, no rainbow or flag doing a second job, no sub-slogan that turns the whole thing into a bit. It is four characters and a punctuation mark on a dark field. The restraint is the design. If you are looking for a shirt that performs a personality, this is not it. If you are looking for a shirt that declines to perform one, the typography is unusually well matched to the task.

I would not claim the shirt improves anyone’s mood, communication, or team dynamics. It is a printed object. What I will claim is narrower and more defensible: the design understands that a null return is not the same as an error, and it renders that distinction at a size you can read from across a room. That is a coherent piece of visual writing.

The off-duty object, read closely

Technical readers tend to like terse messages because terse messages have clear contracts. A function that returns null has told you something specific: no value here, handle it. A shirt that says meh. in large bold type has told you something similar, minus the function signature. It is not a cry for help and it is not a joke about depression. It is a stylized refusal, and the period is the stylization. The garment is available as the Meh Funny Sarcastic Saying Introvert Dry Humor shirt from Quirky Cotton Collective, and the preview is the evidence I am working from — not a wearing experience, not a review, not a claim about how often anyone reaches for it.

If there is a useful takeaway here, it is about reading design the way you read code: find the load-bearing element and ask what contract it implies. In this case the load-bearing element is not the word. It is the period, and the size of the letters that surround it. The word says no strong feeling. The typography says you will notice this anyway. The shirt is the argument between the two, printed in white on dark.

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

The Small Lowercase ‘meh.’ Shirt Is a Null Return, Not a Mood

The native garment preview shows a dark shirt with very small, centered lowercase lettering: meh. No animal. No illustration. No exclamation point. The period is doing more work than the word. That is the whole design, and it is enough to argue about.

Most slogan shirts are assertions. They make a claim about the wearer — I am a night owl, I am the problem, I am not a morning person — and the shirt becomes a badge. This one is different. meh. is not a claim about identity. It is a return value. It is what a function emits when the input does not clear the threshold for enthusiasm. The lowercase and the period matter: lowercase signals informality, the period signals finality. Together they read less like a mood and more like a verdict that has already been rendered and will not be reopened.

That distinction is worth taking seriously, because technical readers spend a lot of time around terse messages. A status code, a one-line commit message, a Slack reply that is just a thumbs-up. The small meh. belongs to that family. It is a minimal viable response. It says: I have received your input, I have evaluated it, and the output is below the bar for further comment. It is not hostile. It is not warm. It is a null return with a trailing period.

The scale of the lettering is the argument. A large MEH across the chest would be a performance — a loud declaration of disinterest, which is its own kind of enthusiasm. The small centered meh. is quiet enough that a reader has to lean in. That is the joke: the shirt makes you do the work of noticing that it does not care. The understatement is the point. If you have to squint to read it, the design has already made its case.

I would not call this a software shirt, and I am not going to pretend it demonstrates anything about engineering. It is a piece of visual language that happens to land well with people who spend their days reading terse outputs. The connection is not that meh. is a status code. The connection is that both are exercises in saying the minimum required and no more. A good log line and a good meh. share a discipline: they resist the urge to explain.

There is a useful distinction here between a slogan and a usable promise. A slogan is designed to be read from across a room and to make the wearer legible at a glance. A usable promise is something you can actually act on. meh. is neither, exactly. It is closer to a boundary marker with the volume turned down. It does not promise warmth, and it does not promise hostility. It promises a low-variance response. For anyone who has spent time on a team where every message is either a crisis or a celebration, a low-variance response has real appeal.

The shirt is listed as Meh Funny Sarcastic Introvert Minimalist Saying from Quirky Cotton Collective. The retail title uses words like sarcastic and introvert, but the artwork itself does not print those words. What is printed is meh. — small, lowercase, centered, with a period. I am reading the design, not the listing copy. The listing copy is a search strategy; the design is the object.

That gap between the retail description and the actual graphic is worth noting, because it is common. The title is doing keyword work. The shirt is doing something quieter. If you buy it expecting a loud sarcastic statement, you may be surprised by how small the lettering is. If you buy it because you like the idea of a shirt that says almost nothing and means it, the scale will make sense.

The period is the part I keep coming back to. Without it, meh is a sound. With it, meh. is a sentence. A one-word sentence with a full stop is a closed loop. It does not invite follow-up. It does not leave the door open for a but actually. It is the written equivalent of a shrug that has been finalized and committed. For a certain kind of reader — the kind who appreciates a terse commit message and a log line that does not editorialize — that is a satisfying piece of design.

I do not think the shirt is making a claim about introversion, despite the listing title. Introversion is a real thing, but meh. is not a diagnosis. It is a response to a specific input. The shirt does not say I am an introvert. It says this particular thing has not cleared my threshold. That is a narrower and more honest statement. It leaves room for enthusiasm elsewhere. A person can be deeply engaged with one thing and meh. about another. The shirt captures the second half without pretending to describe the whole person.

That is why the small scale works better than a large one would. A large MEH would flatten the wearer into a single mood. A small meh. is a localized response. It is the visual equivalent of a function that returns a default value for unhandled input while continuing to process everything else. The shirt does not say the wearer is indifferent to everything. It says the wearer has a default, and the default is meh. That is a systems observation, not a personality claim.

If there is a practical argument for the shirt, it is this: it is a low-stakes way to signal a low-stakes boundary. It does not require the wearer to explain themselves. It does not invite debate. It is small enough to be missed and clear enough to be read once noticed. That is a useful combination for anyone who has ever wanted to say I have no strong opinion on this without saying it out loud.

The design is not trying to be clever. It is trying to be accurate. meh. is an accurate description of a certain kind of response, and the small lowercase lettering is an accurate description of how that response feels from the inside: quiet, final, and not particularly interested in being noticed. The shirt is a null return. That is not a criticism. A null return is a valid output. The period makes it official.

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

When useSelect Looks Stale on a Custom Post Type With a Non-Standard rest_base

Symptom. A custom post type is registered with show_in_rest => true and a rest_base that is not the post type key. A custom sidebar or block fetches records through @wordpress/core-data. On first load the data is correct. After a save, or after switching to another record of the same type, the component keeps rendering the previous values. A direct request to the custom REST route returns fresh data, which makes the editor look like the broken half.

The instinct is to blame the non-standard rest_base. That instinct is usually wrong, and chasing it wastes an afternoon on route registration while the actual defect sits in the component’s selector contract. The two layers are separate, and only one of them is about URLs.

Trace: the route is built from rest_base, the store is not

Start with what rest_base actually does. The register_post_type() reference describes it plainly: “To change the base URL of REST API route. Default is $post_type.” That is the whole contract. It is a path segment.

The controller confirms it. In WP_REST_Posts_Controller::__construct(), the class reference shows the assignment:

$this->rest_base = ! empty( $obj->rest_base ) ? $obj->rest_base : $obj->name;
$this->namespace = ! empty( $obj->rest_namespace ) ? $obj->rest_namespace : 'wp/v2';

So a post type registered as feature with 'rest_base' => 'features' answers at /wp/v2/features. Nothing about that changes how the editor identifies the record.

Now look at the other side. The core-data reference documents the selectors the editor actually uses. getEntityRecord takes kind, name, and recordId. getEntityRecords takes kind, name, and a query object. The documented return for getEntityRecord is precise: “Returns null if the value is not yet received, undefined if the value entity is known to not exist, or the entity object if it exists and is received.” No URL appears in that signature. The entity name is the post type key, not the REST base. The useEntityRecords walkthrough makes the same point from the caller’s side: the second argument is “the name of the entity you want to retrieve… it could also be any other post type, including the name of a custom post type (CPT).”

That is the first separation to hold onto: rest_base changes the HTTP path; the entity store keys records by kind, name, and ID. A non-standard rest_base does not, by itself, make useSelect return stale data. If the entity is registered and resolvable, the store still resolves through the same keys.

Root cause: the component is not subscribed to what it reads

The stale value comes from the component, not the route. The useSelect guidance states the re-render condition exactly: the component updates “when the change causes the new return value of the useSelect callback to not be shallowly equal to the previous one.” Everything follows from that sentence.

The classic failure is destructuring a selector and calling it later:

// Wrong: the callback returns a function, which never changes identity.
const { getEntityRecord } = useSelect( ( select ) => select( coreStore ), [] );
const record = getEntityRecord( 'postType', 'feature', postId );
return <p>{ record?.title?.rendered }</p>;

The documentation calls this out directly: “This code is not reliable. The component will not be re-rendered when the store’s title state changes. It will keep showing the old value.” The selector function is the same reference on every render, so the shallow comparison always says “unchanged,” and the component only refreshes when something unrelated forces a render. That is why the bug looks intermittent and why it looks like caching.

The second failure is a missing or wrong dependency array. The same guidance says the dependency array is optional only for backward compatibility and that you “should always specify” it. If postId is read inside the callback but absent from the array, switching records does not re-run the selector with the new ID in a way the hook can trust.

The third failure is returning a freshly built object or array from the callback. A new reference on every call is never shallowly equal to the previous one, so the component re-renders constantly — the opposite problem, and a useful signal that the callback is doing too much.

Fix: read inside the callback, return primitives or a stable shape

Move the selector call inside the callback and return only what the component renders:

import { useSelect } from '@wordpress/data';
import { store as coreStore } from '@wordpress/core-data';

function FeatureTitle( { postId } ) {
	const { title, hasResolved } = useSelect(
		( select ) => {
			const store = select( coreStore );
			const record = store.getEntityRecord( 'postType', 'feature', postId );
			return {
				title: record?.title?.rendered,
				hasResolved: store.hasFinishedResolution( 'getEntityRecord', [ 'postType', 'feature', postId ] ),
			};
		},
		[ postId ]
	);

	if ( ! hasResolved ) {
		return null;
	}
	return <p>{ title }</p>;
}

Two things make this correct. The selector runs inside the callback, so the hook observes the store and re-renders when the returned primitives change. And postId is declared, so switching records produces a new callback and a new read.

For collections, the same shape applies with getEntityRecords and the query object in the dependency array. If you prefer the wrapper, useEntityRecords returns hasResolved, isResolving, records, and status (documented as one of Resolving, Success, Error, Idle). That gives you a clean way to distinguish “not fetched yet” from “fetched and empty” without hand-rolling hasFinishedResolution calls. It is a convenience, not a fix for a broken selector contract.

Verification: confirm the entity, then confirm the subscription

Work in this order. Each step rules out a layer before you touch the next.

1. Confirm the route exists and returns fresh data. This is the check that misleads people, so do it first and then set it aside:

wp rest route list --format=table | grep features
curl -s -u admin:"$APP_PASSWORD" https://example.com/wp-json/wp/v2/features?per_page=1 | jq '.[0].id, .[0].modified'

If the route answers and the payload is current, the REST layer is not your problem. The editor’s stale render is downstream of it.

2. Confirm the entity name. The name is the post type key, not the REST base. In the browser console on the editor screen:

wp.data.select( 'core' ).getEntityConfig( 'postType', 'feature' )

If that returns undefined, the entity is not registered under the name you are passing, and every selector call is resolving against nothing. Check that show_in_rest is true and that the post type is registered on init, as the register_post_type() reference requires.

3. Watch the selector return value across renders. Add a temporary log inside the callback and compare the object identity between renders. If the logged value is a function, you have the destructuring bug. If the object is new on every render while the underlying record is unchanged, you are rebuilding a derived value inside the callback and should move that transformation out.

4. Confirm the component is subscribed to the store that changes. If the sidebar reads from core but the save path updates a different store, no amount of dependency tuning will help. The useSelect guidance notes that subscriptions are established only when the corresponding select( store ) call actually executes, so a conditional branch that skips the store call also skips the subscription.

5. Check resolution metadata, not just the value. A null return from getEntityRecord means “not yet received,” not “empty.” Rendering a fallback on null without checking hasFinishedResolution produces a UI that looks stale because it is showing the pre-fetch state. The @wordpress/data reference documents the resolver lifecycle: a resolver can be skipped when isFulfilled returns true, and shouldInvalidate can force it to run again on the next selector call. If you have written a custom resolver, that is where to look for a cache that never invalidates.

Why the misdiagnosis is expensive for small teams

A stale sidebar after save reads like a permissions bug or a REST cache. The direct request looks correct, so the investigation moves to rest_base, rest_namespace, and capability mapping. None of those are wrong, and none of them are the cause. The direct request bypasses the component’s subscription contract entirely, so it cannot confirm or rule out the useSelect problem. It only proves the server is fine.

The editorial consequence is concrete: an editor saves a record, the sidebar still shows the old title, and the team concludes the save failed. The save did not fail. The component never re-rendered. Fixing the selector contract is a five-line change; auditing the REST registration is an afternoon that ends where it started.

If the symptom appears on a fresh install before any custom code is involved, the problem is more likely a registration or query issue than a selector one. The first-things-to-check guide for “nothing found” on a new site covers that adjacent case and is worth reading before you start instrumenting components.

FAQ

Does a non-standard rest_base cause useSelect to return stale data? No documented mechanism supports that. rest_base changes the route path; the entity store keys records by kind, name, and ID. If the entity is registered correctly, the store resolves through those keys regardless of the URL.

Should I pass the rest_base as the entity name? No. Pass the post type key. The useEntityRecords documentation describes the second argument as the entity name, which can be a custom post type, not its REST base.

Is useEntityRecords a fix for stale data? It is a wrapper that exposes hasResolved, isResolving, records, and status. It helps you distinguish loading from empty. It does not repair a callback that returns a selector function or omits a dependency.

Why does the bug only appear after a save? Because the initial render reads whatever is in the store at mount. The stale value appears when the store changes and the component’s return value is shallowly equal to the previous one, so no re-render is triggered. The save is the event that exposes the broken subscription, not the cause of it.

Why wp_safe_remote_get() Returns a WP_Error on Self-Signed Certificates — and How to Read the Error Object for the Real Cause

The failure usually arrives as a shrug. A plugin calls wp_safe_remote_get(), gets back something that is not an array, and the calling code collapses it into return false; or an empty string. The page renders without the remote data. No fatal error, no admin notice, nothing in the debug log unless someone thought to log it. The certificate is the suspect because the endpoint is internal and self-signed, but the error object already contains the answer — it is just being discarded before anyone reads it.

This is a walkthrough of that object: what codes and messages the HTTP API actually produces, how to tell an SSL verification failure from a URL-validation rejection, and where to instrument the request so the next failure is legible.

Symptom: the caller treats every WP_Error as the same failure

Consider the shape most call sites take:

$response = wp_safe_remote_get( 'https://internal.example.test/wp-json/feed/v1/items' );

if ( is_wp_error( $response ) ) {
    return array(); // and the reason disappears here
}

return json_decode( wp_remote_retrieve_body( $response ), true );

That return array() is where the diagnosis dies. wp_safe_remote_get() is documented to return array|WP_Error — the response or a WP_Error on failure — so the error is not silent at the API level. It is silent at the call site, because the code chose not to look. The WP_Error class exists precisely to carry an error code, one or more messages, and optional data; is_wp_error() simply reports whether a value is an instance of it. Everything needed to distinguish causes is in the object.

Trace: two validation layers, one error type

The reason a single WP_Error can mean several different things is that wp_safe_remote_get() is a thin wrapper. Its source sets one argument and delegates:

function wp_safe_remote_get( $url, $args = array() ) {
    $args['reject_unsafe_urls'] = true;
    $http = _wp_http_get_object();
    return $http->get( $url, $args );
}

That reject_unsafe_urls = true is the entire difference from wp_remote_get(). Per the function reference, the URL and every URL it redirects to are validated with wp_http_validate_url() to avoid Server Side Request Forgery. This is a URL-safety layer, not a certificate layer. It runs before any TLS handshake.

Inside WP_Http::request(), the flow that matters for diagnosis is:

  1. Defaults are merged, including 'sslverify' => true and 'sslcertificates' => ABSPATH . WPINC . '/certificates/ca-bundle.crt'.
  2. The http_request_args filter runs on the parsed arguments and URL.
  3. If reject_unsafe_urls is set, the URL passes through wp_http_validate_url(); an empty result produces new WP_Error( 'http_request_failed', 'A valid URL was not provided.' ).
  4. block_request() can produce new WP_Error( 'http_request_not_executed', 'User has blocked requests through HTTP to the URL: …' ).
  5. The transport runs. A thrown WpOrg\Requests\Exception is caught and wrapped as new WP_Error( 'http_request_failed', $e->getMessage() ).
  6. http_api_debug fires with the response, context, transport class, parsed args, and URL — before the caller sees anything.

So the code http_request_failed covers at least three different situations: an empty or invalid URL, a transport exception, and an SSL verification failure. The code alone will not tell you which. The message will.

Root cause: what an SSL verification failure actually looks like

In the Streams transport, when the secure connection cannot be established and PHP reports no separate connection error, the method returns:

return new WP_Error(
    'http_request_failed',
    __( 'The SSL certificate for the host could not be verified.' )
);

The same message is returned when verify_ssl_certificate() fails after the connection is open. That string — The SSL certificate for the host could not be verified. — is the signal. It is not a special self-signed-certificate code; it is the generic verification failure message, and a self-signed certificate is one way to reach it. A missing intermediate, an expired certificate, or a hostname mismatch can produce the same text.

Contrast that with the other failure shapes:

  • URL rejected before transport: code http_request_failed, message A valid URL was not provided. This is the SSRF validation layer, not TLS.
  • Blocked URL: code http_request_not_executed, message naming the blocked URL.
  • Transport exception: code http_request_failed, message is the exception text — often a cURL or stream error, not the certificate sentence.

The practical consequence: if you see http_request_failed and stop reading, you cannot tell whether the problem is the certificate, the URL, or the network. If you read the message, you usually can.

Fix: inspect the object, then instrument the request

The first fix is not a code change to the request; it is a change to the call site. A diagnostic wrapper that logs the code, message, and data before returning the error costs nothing in production and makes the next failure self-explaining:

function jv_safe_get( string $url, array $args = array() ) {
    $response = wp_safe_remote_get( $url, $args );

    if ( ! is_wp_error( $response ) ) {
        return $response;
    }

    $code    = $response->get_error_code();
    $message = $response->get_error_message();
    $data    = $response->get_error_data();

    error_log( sprintf(
        'HTTP GET %s failed [%s]: %s | data: %s',
        $url,
        $code,
        $message,
        wp_json_encode( $data )
    ) );

    return $response;
}

This uses only documented WP_Error methods. get_error_code() returns the first code; get_error_message() returns the first message for that code; get_error_data() returns the most recently added data for it. If an error carries multiple messages or multiple data entries, get_error_messages() and get_all_error_data() expose the full set. Error codes in WordPress are strings, conventionally snake_case, so comparing against 'http_request_failed' is a string comparison, not an integer one.

The second fix is instrumentation at the right layer. Wrapping every call site is tedious and easy to forget. The http_api_debug action fires after the response is received and before it is returned, and it receives the response, the context, the transport class, the parsed arguments, and the URL. Hooking it once captures every HTTP API request on the site:

add_action( 'http_api_debug', function ( $response, $context, $class, $parsed_args, $url ) {
    if ( ! is_wp_error( $response ) ) {
        return;
    }

    error_log( sprintf(
        '[http_api_debug] %s via %s — %s: %s | sslverify=%s | sslcertificates=%s',
        $url,
        $class,
        $response->get_error_code(),
        $response->get_error_message(),
        var_export( $parsed_args['sslverify'], true ),
        $parsed_args['sslcertificates']
    ) );
}, 10, 5 );

Logging sslverify and sslcertificates from $parsed_args is the part that catches the common surprise: a plugin or theme has filtered https_ssl_verify or http_request_args globally, and the request you thought was verifying is not. The http_request_args filter receives the parsed arguments and the URL, so it is also a valid place to log or adjust per-request settings — but it runs before the transport, so it tells you what was attempted, not what failed. Use http_api_debug for outcomes and http_request_args for inputs.

The tempting non-fix

The reflex is to disable verification. The https_ssl_verify filter controls whether SSL is verified for non-local requests, and the hook documentation itself notes that disabling verification is strongly recommended against for security reasons. Setting 'sslverify' => false in the request arguments has the same effect at the request level.

The argument against it is not merely doctrinal. WordPress has bundled CA certificates in core since 3.7, sourced from Mozilla, specifically so that verification does not depend on the host’s local CA configuration. SkyVerge’s write-up on the subject makes the case directly: because core bundles certificates to validate them itself, setting sslverify = false is a security risk — it prevents verifying that the remote host is who it claims to be — and the only reasonable use is local development against self-signed certificates. For an internal endpoint with a self-signed certificate, the durable fix is to supply the certificate explicitly via the sslcertificates argument, pointing at the absolute path of a .crt file, rather than turning verification off for every request the site makes.

That is a recommendation, not a finding from the sources: the documentation establishes the default and the filter; it does not prescribe a remediation policy. The policy follows from the security argument above.

Verification: a decision procedure

When a wp_safe_remote_get() call fails, read in this order:

  1. Code. http_request_not_executed means the URL was blocked — stop, this is not a certificate problem. http_request_failed means continue to the message.
  2. Message. The SSL certificate for the host could not be verified. points at TLS. A valid URL was not provided. points at the SSRF validation layer. An exception string points at the transport or network.
  3. Arguments. From the http_api_debug log, confirm sslverify is still true and sslcertificates points where you expect. A filter elsewhere on the site may have changed either.
  4. Data. Check get_error_data() and, if present, get_all_error_data() for anything the transport attached.

Only after those four steps is it worth touching the certificate, the CA bundle, or the request arguments. The error object was carrying the answer the whole time; the failure was in the code that declined to read it.

Questions that come up

Does wp_safe_remote_get() fail differently from wp_remote_get() on certificates?

No. The certificate verification path is the same; the difference is that wp_safe_remote_get() adds the reject_unsafe_urls layer, which can produce its own WP_Error before TLS is attempted. That is why the same error code can mean two different things depending on which function you called.

Why does the error code not distinguish SSL failures from other transport failures?

Because WP_Http::request() wraps every caught WpOrg\Requests\Exception as http_request_failed with the exception message, and the Streams transport returns the same code with a fixed message for verification failures. The code is a category; the message is the discriminator.

Is sslverify => false ever acceptable?

The hook documentation warns against disabling verification for security reasons, and the case for keeping it on in production is strong given that core bundles CA certificates. For local development against a self-signed certificate, disabling verification is a common workaround; for a production internal endpoint, supplying the certificate through sslcertificates is the narrower change.

Where should the logging live?

At the http_api_debug action if you want coverage of every request without editing call sites; at the call site if you want the URL and surrounding context in the same log line. Doing both is not excessive for a site that has already lost an afternoon to an unread WP_Error.

Related reading on this site: if a fresh install is returning empty results rather than HTTP errors, the failure is upstream of the HTTP API — see What to Fix First When a New WordPress Site Says Nothing Found.

Sources

The ‘I Wear This Shirt Periodically’ Shirt Is a Lookup Table, Not a Sentence

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

The shirt reads I WEAR THIS SHIRT PERIODICALLY, and beneath that line sit four tiles in the visual grammar of the periodic table: 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 above them. That gap is the joke, and it is also the most interesting thing about the design.

Most slogan shirts ask you to read a sentence and agree or laugh. This one asks you to read a sentence, then read a second encoding of the same idea, then notice that the second encoding does not resolve cleanly into the first. The word periodically is doing double duty: it is the adverb in the sentence, and it is the name of the table the tiles imitate. The tiles are not letters. They are element symbols, and the sentence is reconstructed from them phonetically rather than typographically. I is iodine. W is tungsten. Ti is titanium. S is sulfur. Say the symbols aloud and you get something close to I wear this — close, not exact. The shirt is a lookup table with a lossy join.

What the tiles actually encode

This is not a chemistry lesson, and I am not going to pretend the shirt teaches one. The atomic numbers are correct for the symbols shown: iodine is 53, tungsten is 74, titanium is 22, sulfur is 16. But the design is not asking you to balance an equation. It is asking you to notice that a compact notation system — element symbols — has been repurposed to carry a phrase it was never designed to carry. The result is legible only if you already know the symbols, and even then it is approximate. W is pronounced tungsten in chemistry and double-u in English. The shirt leans on the second pronunciation while displaying the first symbol. That is the seam.

I keep coming back to that seam because it is the same seam that shows up in every system that tries to encode human intent in a machine-readable format. You pick a schema. You populate it. You ship it. Then someone reads the output and discovers that the schema had assumptions the input did not share. The shirt is a tiny, wearable version of that discovery. It is funny because it is familiar.

The difference between a slogan and a usable promise

A slogan is a sentence that sounds good. A usable promise is a sentence that survives contact with the thing it describes. I wear this shirt periodically is a slogan. It is also, if you read it literally, a claim about frequency: the wearer puts the shirt on at intervals. The tiles underneath do not clarify the interval. They do not specify a schedule. They do not tell you whether periodically means weekly, monthly, or once per fiscal quarter. The shirt is not a contract. It is a joke about the word periodically borrowing authority from the periodic table without inheriting any of its precision.

That is the useful argument here. Technical readers spend a lot of time around notation that looks precise and promises more than it delivers. A configuration file that reads like a specification but silently defaults half its keys. A status page that says operational without defining the check behind it. A shirt that says periodically and then hands you four element tiles that do not spell the word. The shirt is not a failure. It is a diagram of a familiar kind of failure, worn on the chest, which is a strange and effective place to put it.

Reading the object without overreading it

I want to be careful here. The shirt does not demonstrate anything about software, security, or engineering practice. It is a piece of printed apparel with a pun on it. The visual observation is the whole evidence base: the sentence, the four tiles, the numbers, the symbols. Everything else is interpretation, and I am labeling it as such. The design is clever because it invites a second read. It does not become a different object when you analyze it. It stays a shirt.

What makes it worth writing about is the specific move it makes: it uses a notation system as a visual texture, then lets the notation fail to resolve. That failure is the punchline. A lesser design would have spelled the sentence out in tiles that actually matched the letters. This one does not, and the mismatch is the point. The shirt is not about chemistry. It is about the gap between a system’s intended meaning and its readable output, which happens to be a gap that chemistry notation is very good at illustrating.

If you want the object itself, the listing is here: I Wear This Shirt Periodically Funny Chemistry Science Pun. I am not going to tell you it is comfortable, because I have not worn it. I am not going to tell you it is popular, because I have not measured that. I am going to tell you what the artwork does, which is the only claim the observation supports.

The tile as a unit of compression

There is one more thing worth naming. The periodic-table tile is a compression format. It packs a symbol, an atomic number, and a name into a small square, and it assumes a reader who can decompress it. The shirt borrows that format and applies it to a phrase that was not written for it. The result is a kind of visual debt: the tiles promise a clean decode, and the sentence above them does not quite pay it off. That is not a bug in the design. It is the design. The shirt is a small, legible artifact of the moment when a notation system meets a message it was not built for, and the reader has to decide whether to laugh or to file a ticket.

Most people will laugh. A few will want to file a ticket. Both reactions are correct.

The ‘Not Friendly Do Not Touch’ Shirt Is a Boundary With a Warning Label

The artwork is blunt: NOT FRIENDLY across the top, DO NOT TOUCH beneath it, a yellow caution triangle, and a hand with a diagonal slash through it. It borrows the grammar of a hazard placard — triangle, prohibition mark, imperative verb — and points it at a person. That is the whole design. There is no mascot, no punchline, no second layer of irony. The shirt is a sign, and the sign is about the wearer.

Most slogan shirts make a claim. This one issues a constraint. That difference is worth taking seriously, because constraints are the part of any system — social or technical — that people actually have to obey.

What the sign language is doing

A caution triangle is a specific visual contract. It says: a hazard exists here, and you are responsible for avoiding it. The crossed-out hand is a prohibition mark, the same family as a no-smoking or no-entry symbol. Neither element is decorative. Both are instructions addressed to the viewer, and both assume the viewer can read them without a caption.

The shirt supplies the caption anyway. That redundancy is the design’s best decision. A warning sign works because it is legible at a glance from a distance, and the lettering here is sized to be read before the wearer is within conversation range. The triangle and the hand do the work for anyone who sees the shirt from across a room; the words do the work for anyone close enough to read them. It is a two-tier message, and the tiers agree.

I read the crossed-out hand as the load-bearing element. A triangle alone says be careful. The hand says specifically you, specifically this. It converts a general caution into a personal boundary, which is a harder thing to print and a harder thing to say out loud.

A slogan is not a promise

Here is where the design earns more than a chuckle. A slogan is a claim about identity or attitude; a promise is a claim about future behavior. Most novelty shirts traffic in slogans — I’m the reason the code works, I speak fluent regex — and nobody expects them to hold. This one reads closer to a promise, or at least a stated policy: this is how I will behave, and here is the notice.

That is a meaningful distinction for anyone who has watched a team write down its norms. A norm that lives only in a slogan is decoration. A norm that comes with a visible boundary — a stated limit, a named consequence, a sign on the door — is closer to an enforceable contract. The shirt is not a contract, obviously. But it is shaped like one, and that shape is why it reads as funny rather than merely rude. The humor comes from the mismatch between the formality of the sign and the intimacy of the subject.

I would not claim the design is making an argument about consent, introversion, or workplace culture. It is a warning sign with a hand on it. What I will claim is that the sign format is doing real work: it tells the reader what to expect and what not to do, in the fewest possible words, with a symbol that survives being seen from twenty feet away.

The introvert reading, and its limits

The retail title calls this an introvert shirt, and the association is easy to see: a person who would rather not be approached, wearing the notice so they do not have to say it. That is a reasonable reading of the object. It is also a reading, not a fact about the wearer. Plenty of people who enjoy company would wear a joke sign; plenty of introverts would find the crossed-out hand too aggressive for daily use. The design does not settle the question, and it does not need to.

What the design does settle is the tone. The yellow triangle keeps it from being a threat. Hazard signage is bureaucratic, faintly absurd when applied to a human being, and that absurdity is the joke. The shirt is not saying I am dangerous. It is saying I have filed the appropriate paperwork about my availability. That is a very specific and very recognizable register for anyone who has sat in a meeting where someone asked for a quick sync and meant an hour.

Reading it as a boundary artifact

If you want to take the object seriously for a moment, the useful question is not is this funny but what kind of boundary is it. Boundaries come in two flavors. There are boundaries you enforce yourself — you leave the room, you stop answering, you close the laptop. And there are boundaries you delegate to a sign, a policy, or a system, so that the sign does the refusing on your behalf. The second kind is cheaper to maintain and easier to resent, because it removes the human from the interaction.

This shirt is the second kind, worn on the body. It outsources the please don’t to a piece of typography. Whether that is a kindness or a dodge depends entirely on the wearer and the room, and the design is smart enough not to decide for you. It just prints the notice and lets the situation supply the context.

That is also why the shirt works better as an object than as a manifesto. A manifesto would explain. A sign just states. The restraint is the point: three lines of text, two symbols, no elaboration, no apology. If you have ever tried to write a boundary that people actually respect, you know how hard that economy is to achieve.

The object itself

The design is available on a standard t-shirt from Quirky Cotton Collective, listed as the Not Friendly Do Not Touch Funny Warning Sign Introvert. The print is the warning-sign lettering, the yellow caution triangle, and the crossed-out hand described above; the listing title and the artwork agree on the concept. I am describing the graphic as observed, not reporting a wearing experience or a fit.

What I can say is that the design is unusually legible for a novelty print. The hierarchy is correct — symbol first, words second, both readable at distance — and the yellow triangle gives the eye a single anchor. That is more design discipline than most slogan shirts bother with, and it is the reason the joke lands before the wearer has to explain it.

Why the sign format holds up

Warning signs are one of the few graphic forms that have to work under bad conditions: bad light, bad angle, a reader in a hurry. That constraint produces a visual language of high contrast, short imperatives, and unambiguous symbols. When you apply that language to a social situation, you get a small, useful joke about how hard it is to say no plainly.

The shirt does not resolve that difficulty. It just makes it visible, in yellow, at chest height. That is enough. A boundary you can read from across the room is a boundary that has a chance of being honored — and a sign that knows it is a sign is funnier than one that pretends to be a personality.

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