[wp-trac] [WordPress Trac] #63861: Explore removing wpmu activation styles
WordPress Trac
noreply at wordpress.org
Sat Aug 23 04:18:15 UTC 2025
#63861: Explore removing wpmu activation styles
-------------------------+---------------------------------------
Reporter: joedolson | Owner: (none)
Type: enhancement | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: accessibility, multisite
-------------------------+---------------------------------------
Comment (by rishabhwp):
Hey,
I went through the issue and the concerns raised about the hardcoded
styles. One solution I can think of is adding a filter to make these
styles easily disableable, something like:
{{{#!php
function wpmu_activate_stylesheet() {
/**
* Filters whether to output the default activation page styles.
*
* @param bool $load_styles Whether to load the default styles.
Default true.
*/
if ( ! apply_filters( 'wpmu_activate_stylesheet', true ) ) {
return;
}
// existing styles here (with problematic colors removed)
}
}}}
This will allow developers to easily disable the default styles with:
{{{#!php
add_filter( 'wpmu_activate_stylesheet', '__return_false' );
}}}
The same approach could be applied to `wpmu_signup_stylesheet()` in `wp-
signup.php`.
This addresses the immediate need for disabling these styles while
maintaining backward compatibility. Developers who want custom styling can
disable the defaults and provide their own, while sites that rely on the
current behavior continue to work.
Would this be a reasonable approach to move forward with?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63861#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list