[wp-trac] [WordPress Trac] #20989: wp_enqueue_style in wp-login.php shows css load string in login_footer() not in head

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 16 20:23:12 UTC 2012


#20989: wp_enqueue_style in wp-login.php shows css load string in login_footer()
not in head
--------------------------+------------------------------
 Reporter:  sgr33n        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 Yes, `wp-login.php` is not considered a part of the admin.

 You could check `$_SERVER['PHP_SELF']` or the `$pagenow` global, like
 `is_admin_bar_showing()` does: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.4/wp-includes/admin-
 bar.php#L734

 {{{
 global $pagenow;
 if ( !is_admin() && 'wp-login.php' != $pagenow ) {
 }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20989#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list