Breaking
Neosframe bets $1,500 unlimited rollout on service, not softwareBankwest Turns Card Security Into Permission to RiskTassal targets iconic brand by 2030 with Havas VillageHalter launches Mav, tapping 2M collars and a hillside archiveTogether Claims 4th IAB NZ Media Agency of the Year in 5 YearsNeosframe bets $1,500 unlimited rollout on service, not softwareBankwest Turns Card Security Into Permission to RiskTassal targets iconic brand by 2030 with Havas VillageHalter launches Mav, tapping 2M collars and a hillside archiveTogether Claims 4th IAB NZ Media Agency of the Year in 5 Years
SEO

WordPress 7.2 Turns /random/ Redirect On by Default

WordPress 7.2 lands December 8 with /random/ switched on by default. Here's how to audit custom post types and control exposure.

WordPress 7.2 Turns /random/ Redirect On by Default

WordPress 7.2 turns /random/ into an opt-out traffic source

WordPress 7.2 is scheduled for December 8, and the change most site owners need to confront before updating is simple to describe but easy to miss: a new /random/ address redirects visitors to a randomly selected published post. The path also works for categories, tags, author archives and eligible custom post types through URL variations and a ?random query variable.

The feature ships on by default. You can rename the base on the Permalinks screen, but there is no dashboard switch to turn it off. The only opt-out is a one-line mu-plugin using the filter wp_enable_random_content_redirect. A filter name published in the November developer roundup does not match the code, so copying that version has no effect.

Joost de Valk called the default “a horrible idea to turn on by default” in the discussion on the feature. That reaction points to the core concern for marketers: random discovery can surface content that was never meant to be found by browsing.

Which content /random/ can expose

Random is limited to published posts with no password. Pages and attachments are not eligible. The bigger risk sits with custom post types. If a custom post type is publicly queryable and has archives, WordPress treats it as eligible unless a developer registers it with ‘randomable’ => false.

That means testimonials, offers, client-specific pages or other custom content could be one random URL away from a visitor even if they are absent from your navigation. The redirect returns a 302, and the noindex header applies to the redirect response itself, not to the destination post it sends the visitor to. An SEO plugin that marks a post noindex is not automatically respected by the random selection.

Pre-upgrade checklist for teams

Use the December 8 date as the deadline for a small audit. Teams managing many sites can standardize the decision with one mu-plugin across the fleet:

  • List every publicly queryable custom post type with archives.
  • Set ‘randomable’ => false for any post type that should not be randomly served.
  • If you want the feature off sitewide, add the correctly spelled filter and flush rewrite rules after changing it.
  • After the upgrade, visit wp-admin once and purge page cache or CDN cache to avoid a stale 404.

Large archives should also watch logs for repeated /random/ hits after launch. A November 17 change replaced random sorting with random post ID lookups to keep request cost independent of post count, but a bot hammering the endpoint is still worth monitoring.

Security and AI changes pulled back

The Secrets API, a planned way for plugins to store credentials with encryption, was removed from 7.2 on November 17. Matt Mullenweg agreed with contributor Ryan McCue’s concerns, and the commit message says the API needs more time to mature. The AI additions in 7.2 are developer-facing: three read-only abilities that let other applications query content, users and settings. Editors and visitors do not get a new visible AI feature in core.

The final shape could still shift before release. Test on staging, watch the release candidates, and make the /random/ decision before December 8 rather than discovering it on a live site.

Leave a Reply