Skip to content
    Industry news

    Two WordPress 7.2 Changes Agencies Should Check: The /random/ Endpoint and SVG Admin Icons

    WordPress 7.2 adds a /random/ URL that is on by default and swaps Dashicons for inline SVGs in the admin bar and menu. Here is what changed and what to check on client sites.

    4 min readGus, MaintainHQ

    WordPress admin dashboard with a highlighted admin menu beside a browser address bar showing a /random/ URL

    WordPress 7.2 is in beta, and two recent developer notes describe changes that affect client sites in practical ways. The first adds a public URL to every site by default. The second changes how admin bar and menu icons are drawn, which matters if you or your plugins style them. Neither is dramatic, but both are worth checking before 7.2 reaches your clients.

    A new /random/ URL, switched on by default

    According to the Make WordPress Core post on the new endpoint, WordPress 7.2 introduces a /random/ endpoint. A visit to example.com/random/ sends the visitor to a randomly selected published post.

    The post makes two points agencies should note:

    • It is on by default. Every site that updates to 7.2 will respond at /random/ unless something changes that.
    • It is built on existing core APIs. It uses the rewrite, WP and WP_Query APIs that WordPress already relies on, rather than a separate system.

    The idea is to help readers discover content. For a blog or magazine site that may be welcome. For a brochure site, a membership site or a shop where posts are an afterthought, a new public route that surfaces old content may not be what the client expects.

    What to check on client sites

    These are the questions we would ask for each site before 7.2 goes live:

    • Does anything already live at /random/? If a site has a page, category, custom post type or plugin route using that path, test how it behaves with 7.2 on a staging copy.
    • What would a random published post reveal? Any published post is a candidate. Old announcements, outdated prices or test posts that were published and forgotten could now turn up. A short content audit is a good idea for sites with a long post history.
    • Does a plugin already do this? Some sites use a plugin or custom code for a "random post" link. Check whether it overlaps with or conflicts with the core feature.
    • How do caching and redirect tools treat it? A page that sends visitors somewhere different each time can behave unexpectedly behind page caching or redirect rules. Test it on staging with your usual caching setup.
    • Does the client want it? Some will like the feature. Others will want it off. Read the developer note for the current guidance on changing its behaviour, as details can change during the beta.

    Admin bar and menu icons are now inline SVGs

    The second change is in the admin. As described in the Make WordPress Core post on SVG icons, the icons in the admin bar and admin menu in WordPress 7.2 are now inline SVGs from the @wordpress/icons package.

    Previously these icons were Dashicons font glyphs drawn with CSS ::before. The new approach follows the earlier announcement about replacing Dashicons in the admin bar and menu.

    The post notes that most plugins should be fine. Even so, anything that relied on the old way the icons were drawn deserves a look.

    Who should pay attention

    • Agencies with white-labelled admin areas. If you restyle or recolour core admin menu icons for clients, custom CSS aimed at the old ::before glyphs may no longer have the effect you expect.
    • Plugin and theme developers. Code that targets core admin icons through the Dashicons font, or that assumes a particular structure for menu icons, should be tested against the beta.
    • Sites with admin customisation plugins. Tools that change the admin menu or admin bar appearance are worth checking on staging, especially if they adjust core icons.

    The practical step is simple: load the beta on a staging copy of a typical client site, open the dashboard and look. Check the admin menu, the admin bar on the front end and any custom branding. If something looks wrong, the developer note is the place to start.

    Testing safely

    Both changes are part of WordPress 7.2, which is still in beta. The WordPress 7.2 Beta 5 announcement is clear that beta releases are for testing and development only and should not be installed on production or mission-critical sites. Use a local site or a staging copy.

    A quick plan for most agencies:

    1. Pick two or three representative client sites, ideally one content-heavy blog, one shop or membership site, and one with a customised admin.
    2. Clone each to staging and update to the latest 7.2 beta.
    3. Visit /random/ a few times and note what comes up.
    4. Review the admin menu and admin bar, including any custom branding.
    5. Write down any client conversations you need to have, such as whether they want the random endpoint, before the final release.

    Wrapping up

    The /random/ endpoint is the change most likely to surprise clients, because it adds a public URL to every site by default. The SVG icon switch mainly affects agencies and developers who customise the admin. A short round of staging tests now, plus a quick content audit on sites with long post histories, should mean neither causes problems when 7.2 is released.

    Get MaintainHQ updates

    Enjoyed this? Get new posts, Gus skills and WordPress maintenance tips by email. Roughly once a month, and you can unsubscribe at any time.

    Ready to try MaintainHQ?

    From £29 a month for up to 2 sites. Every plan starts with a 14-day trial.