[wp-trac] [WordPress Trac] #35229: Stop generating `wp-admin.min.css`

WordPress Trac noreply at wordpress.org
Tue Dec 29 04:30:51 UTC 2015


#35229: Stop generating `wp-admin.min.css`
---------------------------+-----------------------------
 Reporter:  dd32           |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  4.5
Component:  Script Loader  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  administration
---------------------------+-----------------------------

Comment (by azaozz):

 35229.4.diff works better. We still have to ensure that `'open-sans',
 'dashicons'` are the first and second dependency so they are loaded before
 the rest of the wp-admin or wp-login stylesheets.

 Also I'd move `add_action( 'login_head', 'print_admin_styles', 9 );`
 before `add_action( 'login_head', 'wp_print_head_scripts',  9 ); ` because
 of the general "stylesheets before scripts" rule. This action might
 eventually cause some stylesheets added by plugins and intended for wp-
 admin to be outputted on wp-login, but thinking the risk of breaking
 something there is almost non-existent.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35229#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list