[wp-meta] [Making WordPress.org] #5133: Don't load wp4.css on the homepage.
Making WordPress.org
noreply at wordpress.org
Mon Apr 6 06:28:02 UTC 2020
#5133: Don't load wp4.css on the homepage.
----------------------------+---------------------
Reporter: dufresnesteven | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: General | Resolution:
Keywords: |
----------------------------+---------------------
Comment (by dd32):
There's some functionality on WordPress.org to do just that.
If a WordPress.org theme registers support for `wp4-styles` then the
global header won't output `wp4.css`:
{{{
themes/pub/wporg-themes/functions.php: add_theme_support( 'wp4-styles' );
themes/pub/wporg/functions.php: add_theme_support( 'wp4-styles' );
themes/pub/wporg-plugins/functions.php: add_theme_support( 'wp4-styles' );
}}}
That'll also disable `Open Sans` and `Dashicon` loading too, so it's
assumed the theme handles fonts.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/5133#comment:1>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list