WordPress 7.2 has introduced several notable features, including a default /random/ redirect that takes users to a random published post. This new behavior blends with core AI enhancements and administration updates, shaping how site owners and developers manage content and security. Understanding these changes is critical as WordPress sites prepare for the December 8 rollout.
The New Default /random/ Redirect
At the core of 7.2’s changes is the activation of the /random/ URL path. By default, any request to example.com/random/ will redirect visitors to a randomly selected published post. This feature applies also to category, tag, author archives, and suitable custom post types, making it a site-wide dynamic navigation option.
The feature uses a 302 redirect with no-cache headers and includes an X-Robots-Tag: noindex, follow response for the redirect itself, though not on the posts it points to. This means that while the random redirect URL is not indexed by search engines, the destination posts remain indexable unless otherwise configured. However, the random selection does not exclude posts that SEO plugins marked with noindex, a potential concern for content visibility strategies.
Not all content types are eligible: only published posts without passwords. Pages and attachments are excluded by default. For custom post types, eligibility requires being publicly queryable and having an archive, unless explicitly excluded via the filter 'randomable' => false. This allows developers to prevent sensitive or client-specific custom content from appearing in random redirects.
There is a caveat if a post or page uses the slug “random,” which will override the redirect to serve that page instead. Developers are encouraged to consider alternative base slugs such as “shuffle” for this feature to avoid such conflicts.
Performance on large sites was a concern initially because selecting a truly random post could be resource-intensive. To address this, WordPress introduced optimizations to retrieve random post IDs without sorting entire archives, reducing load while maintaining randomness.
“The optimized random post selection ensures the /random/ feature is scalable, even for extensive archives,” said a WordPress core contributor.
For site administrators wary of this new default, disabling the feature is straightforward with a one-line mu-plugin filter: add_filter( 'wp_enable_random_content_redirect', '__return_false' );. This overrides the rewrite rules and removes the option from the permalinks settings. However, due to WordPress core philosophies, this feature is opt-out rather than opt-in by default.
Implications for SEO and Content Strategy
Site owners should carefully review their custom post types and decide which content should be eligible to appear randomly. This can prevent undesired exposure of client-specific or non-public information. Because the redirect excludes noindex instructions from SEO plugins, additional caution or custom code may be warranted to maintain SEO objectives.
For example, clients with confidential testimonial pages may want to explicitly exclude those post types from the random redirect to preserve privacy and consistent user experience.
AI Enhancements Integrated into WordPress Core
Alongside the /random/ redirect, WordPress 7.2 strengthens its AI foundations. The new release brings three new read-only abilities that allow external applications to query WordPress content, user data, and settings securely. These capabilities are registered as actions callable by APIs such as the WordPress REST API and the Model Context Protocol (MCP), setting the stage for more robust AI integrations.
This new architecture facilitates similarity searches and embedding creation, enabling developers to build smarter content discovery and recommendation tools. Importantly, these abilities enforce user authentication and permission checks to ensure privacy.
While WordPress core lacks an MCP server, the AI plugin ecosystem leverages these APIs to provide advanced AI experiences, including text-to-speech, content revision summaries, and content provenance through Content Verification. These are delivered as opt-in experiments within the AI plugin framework.
“Exposing controlled AI query capabilities in core empowers developers while maintaining security boundaries,” noted a WordPress AI team member.
The AI plugin version 1.5.0 mirrors the upcoming core API changes and has implemented a bundled, experimental version of the Secrets API to encrypt service keys. This demonstrates WordPress’s commitment to embedding AI while managing authorization and security.
Future-Ready with Agentic Web Support
Looking forward, WordPress plans to support broader types of AI agents and integrations in future releases. The agentic-web proposal emphasizes seamless WordPress interactions via command-line tools and the REST API, simplifying AI-driven workflows and automation for end users and developers alike.
The Removal of the Secrets API from WordPress 7.2
Initially slated for inclusion, the Secrets API was removed from the 7.2 release after community feedback revealed design and security concerns. The API aimed to provide an encrypted storage mechanism for sensitive plugin data like API keys via libsodium encryption, with flexibility for hosts to use custom implementations.
Critics pointed out that merging read and write operations within the same API could create security risks and limitations, particularly around hardware security module support and capability checks. After deliberation, WordPress core reverted the API to allow further maturation before future inclusion.
Plugin developers relying on secrets management must now consider alternative approaches. For example, the AI plugin has adopted its own encryption methods outside core for storing API keys securely.
Ryan McCue, a core contributor, commented, “Separating read and write capabilities for secrets storage is essential to sound security architecture, and more time is needed to refine this feature.”
Administrative Updates and Optimizations
WordPress 7.2 also enhances the admin experience by decoupling combined JavaScript and stylesheet files into individual assets. This allows more efficient loading, including prefetching assets for the expected next screen, resulting in improved admin responsiveness.
The traditional load-scripts.php and load-styles.php files have been deprecated in the admin and login areas. Additionally, the administration menu icons have transitioned from Dashicons font-based icons to modern SVGs, improving visual quality and accessibility. Site owners and developers should review any custom CSS targeting previous icons to ensure compatibility.
Support for PHP 8.6 and Security Notifications
WordPress 7.2 aims for full compatibility with PHP 8.6, ensuring better performance and security. Furthermore, Beta 5 introduced email notifications when an application password is created, enhancing security awareness for site administrators.
Why These Changes Matter
The automatic /random/ redirect, AI core capabilities, and administrative improvements will directly impact how WordPress sites behave, are managed, and integrate with modern AI tools. Site owners should audit content eligibility and SEO configurations before update to mitigate surprises and maintain desired content control.
Especially for agencies managing multiple client sites, implementing a consistent mu-plugin configuration to control /random/ behavior ensures uniform experiences. Developers should also plan updates to admin interface customizations in response to icon and asset loading changes.
With the rise of AI in content management, WordPress’s move toward integrating foundational AI client functionality reflects industry trends. This provides a pathway for enhanced automation and content intelligence sensible for developers and enterprise users.
For those interested in leveraging AI for advertising performance, products like Adsroid’s AI agent for Google Ads offer practical ways to combine AI with campaign management, exemplifying how AI and CMSs are converging.
“WordPress 7.2 establishes a balanced foundation for AI growth while mindful of site performance and security,” summarized a leading CMS analyst.
To explore advanced AI capabilities in marketing alongside WordPress enhancements, visit Adsroid’s features page to learn about tools that harness AI for Google and Meta ads.
Managing /random/ Post Redirect and Cache Considerations
After updating, some sites using page caching or a CDN may experience 404 errors when accessing /random/ until rewrite rules are refreshed. WordPress flushes rewrite rules on the first admin login after update, but cached 404s may persist if caches are not purged.
Site administrators should proactively purge caches post-update to ensure smooth user access to the new random redirect feature. Additionally, monitoring server logs for repeated /random/ hits can help detect potential abuse or bot traffic that could strain resources.
Testing and Customization Recommendations
To determine which content types appear via /random/, developers can utilize test environments replicating production content. This practice helps identify unintended exposure and optimize site structure accordingly. Adjusting custom post type flags to exclude sensitive content is considered best practice.
For those aiming to offer curated random content, supplementing the built-in random redirect with custom logic or shortcodes may be beneficial, enabling control over frequency and eligibility criteria.
Additional insights on leveraging AI for campaign performance can be found in the article on how to use AI in Google Ads tasks, complementing WordPress’s AI feature enhancements.
Looking Ahead: WordPress 7.3 and Beyond
WordPress 7.3 plans include broader authorization frameworks and deeper integration of agentic-web concepts, aiming to simplify AI and automation workflows. These enhancements will expand access for intelligent agents to interact with WordPress securely and efficiently.
As WordPress evolves, plugin and theme developers need to stay informed about API changes, deprecations, and new recommended practices. Updating code to align with core AI capabilities and asset loading improvements will ensure compatibility and performance.
The community continues to discuss refinements to the /random/ feature, including potential changes to URL structure and SEO handling. Feedback from users and developers remains vital in shaping feature finalization after the 7.2 release.
Additional Resources
Website administrators and developers seeking to deepen their SEO strategy alongside WordPress upgrades should consult the guide to effective robots.txt usage for SEO and crawl management. This resource clarifies interaction with AI bots and indexing controls in dynamic site environments.
Furthermore, exploring how to audit Google Ads change history with AI provides valuable insights into combining AI with marketing oversight, a synergy increasingly relevant as WordPress integrates AI capabilities.