Make WordPress Core


Ignore:
Timestamp:
05/11/2026 12:46:02 PM (3 months ago)
Author:
wildworks
Message:

Toolbar: Revert add CSS from admin color scheme on front-end.

The implementation issues a server-side HTTP request on every front-end page load and extracts the toolbar CSS via fragile substring matching. Alternatives are too large to land this late in the release cycle, so the fix is deferred to a future release.

Reverts [62025].

Props desrosj, jorbin, mukesh27, sabernhardt, wildworks.

See #64762.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r62334 r62349  
    701701add_action( 'wp_footer', 'wp_admin_bar_render', 1000 ); // Back-compat for themes not using `wp_body_open`.
    702702add_action( 'in_admin_header', 'wp_admin_bar_render', 0 );
    703 add_action( 'admin_bar_init', 'wp_admin_bar_add_color_scheme_to_front_end', 0 );
    704703
    705704// Former admin filters that can also be hooked on the front end.
Note: See TracChangeset for help on using the changeset viewer.