[wp-trac] [WordPress Trac] #63043: script-loader 'colors' src true invalid argument
WordPress Trac
noreply at wordpress.org
Mon Mar 3 05:58:49 UTC 2025
#63043: script-loader 'colors' src true invalid argument
---------------------------+------------------------------
Reporter: kkmuffme | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
---------------------------+------------------------------
Comment (by abcd95):
Thank you for reporting this issue.
I think we should change to -
{{{
$styles->add( 'colors', false, array( 'wp-admin', 'buttons' ) );
}}}
This is actually a technical correction without functional impact. The
'colors' handle's actual source is determined dynamically later based on
the user's selected admin color scheme. Using false here maintains this
behavior while satisfying the type requirements.
I've created a PR with this change. Please feel free to suggest
improvements.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63043#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list