WordPress 7.2’s /random/ Redirect Is On by Default: How to Turn It Off, and Why It’s Dividing Core Developers

WordPress 7.2 is still in testing: Release Candidate 3 shipped on November 24, 2026, with the final release due December 8, 2026. One change in that release doesn’t touch a single screen you look at every day, yet it will be active on every site the moment you update. We already looked at Ipsum, the new default theme shipping in the same version, so let’s walk through this one together: a new /random/ web address that redirects visitors to a randomly picked post, turned on by default, and the pushback it’s drawing from some of WordPress’s own core contributors.

WordPress 7.2 Release Candidate 3 announcement on WordPress.org News
WordPress 7.2 Release Candidate 3, announced November 24, 2026: the final release is still scheduled for December 8.

What actually happens when you visit /random/

A request to example.com/random/ sends the visitor to a randomly selected published post. Core contributor Aaron Jorbin introduced the feature in a dev note on Make WordPress Core published November 5, 2026: it builds on WordPress’s existing rewrite, WP, and WP_Query APIs, nothing new under the hood. The same random base works as a prefix on existing archives, not only on the homepage of your content. /random/category/release/ sends you to a random post in a given category, /random/tag/dev-note/ does the same for a tag, and /random/author/jorbin/ picks randomly among one author’s posts.

Make WordPress Core dev note "Your Content Is Going To Get More Random!", published November 5, 2026
The Make WordPress Core dev note that introduced the /random/ endpoint for WordPress 7.2.

Not every post type qualifies automatically. A new randomable argument on register_post_type() decides eligibility, defaulting to true only for post types that are already publicly_queryable with has_archive set. Among the built-in types, that makes regular posts randomable while pages and attachments are not. If you run a custom post type you’d rather keep out of the shuffle, the dev note’s own example shows how:

register_post_type(
    'musicals',
    array(
        'public'      => true,
        'has_archive' => true,
        'randomable'  => false, // Keep musicals out of /random/.
    )
);

One practical wrinkle worth knowing before you update: core contributor Peter Wilson flagged in the comments that a page or post with the slug random takes priority over the redirect. If that’s your case, you’d rename the random base to something else, like shuffle, from the Permalinks screen.

How to turn it off, if it isn’t for your site

You don’t need a plugin for this, and we wouldn’t install one just for a single filter. The dev note ships its own one-liner: drop this in a must-use plugin, and THE random redirect disappears entirely, including the random base field on the Permalinks screen.

add_filter( 'wp_enable_random_content_redirect', '__return_false' );

We’d also point out the gentler middle ground Jorbin left in the same dev note: a pre_get_posts callback checked against wp_is_random_content_query() lets you exclude specific categories or post types from the shuffle without switching the feature off entirely, through the same permalink machinery we’ve covered before for optimizing WordPress URL slugs.

A focused young man working on a laptop in a bright, calm room
A one-line filter is enough to opt a site out, no plugin install required.

Why performance-minded developers are worried

The pushback started within hours of the dev note going live, and it came from names you likely already know. Ryan McCue, a longtime WordPress core contributor, raised the first flag in the comments: “ORDER BY RAND() is notoriously slow in MySQL since it’s O(N) across the number of rows in the table, to the point that some hosts block its use.” His concern wasn’t theoretical curiosity: a request repeated by bots against /random/ could, in his words, become “an easy way to DoS a site.”

Another commenter, Rene Hermenau, tested that claim directly on WordPress 7.2 Beta 4 and posted the numbers in the same thread: on a 2 million post table, a single uncached request to /random/ took around 1.87 seconds, against roughly 24 milliseconds at 50,000 posts, scaling linearly the whole way up. Twenty simultaneous requests against the 2-million-post site took 14 seconds to finish. That’s a worst-case lab measurement on one test machine, not a reported production incident, but it’s enough that McCue followed up days later still “worried about that speed,” suggesting WordPress cache a batch of random post IDs for an hour rather than re-run the full sort on every visit. Jorbin has since opened a follow-up ticket to look at optimizing the query.

Why Joost de Valk sees a privacy risk, not just a performance one

The second objection came from Joost de Valk, the creator of Yoast SEO, and it has nothing to do with speed. “Turning it on by default risks exposing all sorts of content that was never meant to be public, because we all know how all post types are (ab)used for the wrong reasons and only ‘private’ because they’re not linked anywhere,” he wrote on the same dev note. The scenario he’s pointing at: a custom post type built for invoices, client data, or draft offers, declared public and has_archive for an unrelated reason, and now randomly discoverable through an endpoint its own developer never tested for.

A 2008 plugin, 200 installs, and a sharp reply from Matt Mullenweg

Taco Verdonschot, another WordPress consultant active in the thread, pointed out that this isn’t a new idea: WordPress co-founder Matt Mullenweg already published a plugin doing exactly this in 2007. “The fact that it’s seen its last update 18 years ago, and has just over 200 installs shows the popular demand for this feature: virtually none,” Verdonschot wrote, a figure we confirmed directly on the plugin’s own WordPress.org listing.

Mullenweg defended the feature with a personal anecdote rather than a policy statement, describing how a random visit had just surfaced an old post on Om Malik’s blog: “It’s great to have a little room for serendipity in your life, I just got an iPhone Duo to test the updates to our apps, and look what Om’s site served up on my first visit to his random URL.” When commenter Ciprian Popescu argued at length that a new public endpoint is, by definition, a new attack surface, Mullenweg’s reply ran: “Please write with your hand, not with AI. And ask your AI if this is worse than what people unintentionally expose in sitemaps and the REST API, and if this query is a bigger resource exhaustion vector than submitting lots of random search strings via ?s=.” Popescu later acknowledged using AI to tidy up his wording, while standing by the underlying point.

One commenter, vladte4, summed up the mood of the thread by writing that he personally counted “90% negative reviews” among the comments at that point. That’s one visitor’s own tally, not a figure WordPress.org has published anywhere, and we’re flagging it as such rather than as a measured statistic. What is verifiable is that the feature shipped on by default anyway, with Mullenweg’s team treating the filter as a sufficient opt-out.

Our take

Strip away the back-and-forth in the comments, and the feature itself is small and genuinely optional: one filter, and it’s gone. Whether it’s worth keeping on comes down to what kind of site you run, not to who shouted loudest in the thread. A personal blog with years of posts nobody stumbles on anymore is exactly the case Jorbin built this for. A business site, a shop, or anything built on custom post types you never fully audited for public visibility is the case de Valk warned about, and that’s where we’d reach for the filter before updating, not after.

Once WordPress 7.2 leaves Release Candidate, test the update on a staging copy first, and take five minutes to check which of your custom post types are public with has_archive set, since those are exactly the ones that just became randomly discoverable. If you want the fuller picture of what else ships in this release, we’d point you back to what WordPress 7.1 brought before it, so you’re updating from a version you actually know. Enjoy exploring WordPress 7.2, randomly or otherwise!


Photos: Matthias Groeneveld and MASUD GAANWALA/Pexels. Screenshots: Make WordPress Core and WordPress.org News.